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.
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.