Walter Posted March 28, 2011 Report Share Posted March 28, 2011 Hi there, I've tried many ways and I can't make it work with regular expressions. My number comes in as +1214-222-3333 +1214-223-3333 +1469-333-1234 and so on, Numbers don't match at all. I guess my problem is the + sign but my provider uses it. And I need to use almost the full number except the 1. I tried something like this ([0-9]{10}$)\1 and many others but the call fails. I have many trunks and many DID s that I'll have to route so it is crucial to have an expression that works for me. Thank you for the help. Quote Link to comment Share on other sites More sharing options...
pbx support Posted March 29, 2011 Report Share Posted March 29, 2011 If you set the domain country code to 1, then most of the 10/11 digit dialing issues will be taken care of. Quote Link to comment Share on other sites More sharing options...
Walter Posted March 29, 2011 Author Report Share Posted March 29, 2011 If you set the domain country code to 1, then most of the 10/11 digit dialing issues will be taken care of. it is set, it was set to 1 My idea was to create a Page with the full DID as name and route each DID to Hunt groups or IVR or extensions depending the needs. SO what expressiong will you use? for a 10 digit number? This is what I got: [5] 2011/03/29 01:28:00: Domain trunk Broadvox@pbx.xxxxx.net could not identify user for +12142223333 Quote Link to comment Share on other sites More sharing options...
pbx support Posted March 29, 2011 Report Share Posted March 29, 2011 You can use !([0-9]{10}$)!\1!t!100 or !([0-9]{10}$)!\1!u!100, where 't' refers to the number from the "To" header, 'u' is the number from the "Request-URI". 100 is the default account(say an AA or ACD or Hunt group) if nothing is matched. Please refer http://kiwi.pbxnsip.com/index.php/Inbound_Calls_on_Trunk for details on how to route the inbound calls. Quote Link to comment Share on other sites More sharing options...
Walter Posted March 30, 2011 Author Report Share Posted March 30, 2011 You can use !([0-9]{10}$)!\1!t!100 or !([0-9]{10}$)!\1!u!100, where 't' refers to the number from the "To" header, 'u' is the number from the "Request-URI". 100 is the default account(say an AA or ACD or Hunt group) if nothing is matched. Please refer http://kiwi.pbxnsip.com/index.php/Inbound_Calls_on_Trunk for details on how to route the inbound calls. That one worked out great with the t. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.