HMR to Reject Calls to Numbers longer than 13 Digits
Hi everyone,
I'm failing on a Header-Manipulation to reject incoming Calls where the Callee-Number is longer than 13 Digits.
I want to reject calls incoming from Provider, so I placed the HMR as Inbound Manipulation on Access-SIP-Interface to Provider.
My HMR (which is not working) Looks like:
sip-manipulation
name access_in_reject
header-rule
name rejectLongNr
header-Name To
action manipulate
msg-type request
match-value
new-value
element rule
name rejectLongUriUser
parameter-name
type uri-user
action reject
match-val-type any
comparioson-type case-sensitive
match-value [+]\d{14,}
new-value 414:long
I also tried to write the number I called in match-value like [+]123456789012345 but it still didn't work. Where do I have a mistake?