Author |
Message |
sm8651 Brekeke Member
Joined: 22 Nov 2013 Posts: 13
|
Posted: Tue Mar 12, 2019 8:59 am Post subject: rule for only 10 or 11 digits |
|
|
1. Brekeke Product Name and Version:
3.9
5. Your problem:
I would like to modify my rule so only calls that dialed 10 or 11 digits should go out from this rule.
my rule now is
$request = ^INVITE
To = sip:(.+)@
From = sip:(.+)@
how do I modify this to grab only 10 or 11 digits.
Then i need a rule after this that if you dialed anything that didnt route through this one should get a error so they dont try the calls again.
The reason is we have accounts misdialing like 3 digits and their pbx sends it to the server and the calls go to our carrier, the carriers dont like all these invalid destinations. |
|
Back to top |
|
Niloc Brekeke Talented
Joined: 19 Sep 2017 Posts: 70
Location: NL
|
|
Back to top |
|
|