International Calling

Status
Not open for further replies.

mc6650

Member
Apr 8, 2019
110
2
18
61
Hello
So far I can call a local 10 digit number and a toll free number. I'd like to add international calling 011 and the ability to dial 3 digit numbers such at 211, 310, 411, 611 & 911. Here is my current destination number:
^\+?1?([2-9]\d{2}[2-9]\d{2}\d{4})$

What do I need to add in order to make the above numbers work? My system is small and so I only need to define one outbound route as all extensions will have access to it. My apologies if this has been answered before. Thanks in advance for any help that can be provided.
 

agree

Member
Aug 26, 2018
135
24
18
Something like this should work for you.

Code:
^\+?1?([2-9]\d{2}[2-9]\d{2}\d{4}|(?<![\+?1])(?:011\d{9,17}|911|311|411))$
 

mc6650

Member
Apr 8, 2019
110
2
18
61
Thanks for the feedback. I modified my slightly and added some more "special numbers"

^\+?1?([2-9]\d{2}[2-9]\d{2}\d{4}|(?<![\+?1])(?:011\d{9,17}|211|310|311|411|511|611|911|988))$
 
Status
Not open for further replies.