Reject HMR on dialled number
Good day,
I am in need of the community's assistance, with creating a HMR.
Basically what I need to accomplish is to match on requests, and if the To number/RURI starts with a '0' and it is 13 digits or longer the message should be rejected, but if it starts with '00' is should be ignored,
On all the REGEX I have tried it either doesn't match or matches on '0' and '00'
This is the base HMR I am working from:
sip-manipulation
name BlockInvalidNumbers
description BlockInvalidNumbers
split-headers
join-headers
header-rule
name matchRURI
header-name request-uri
action reject