Jump to content

Regular Expressions not working for me


Walter

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...