Adding dial plan for 14 digits number with +

Status
Not open for further replies.

roney_ewu

New Member
Jun 7, 2020
19
0
1
31
Hi Good people,I need a help with the dial pattern .My users need to call with this pattern (+88XXXXXXXXXXX) +88 is the country code here.I can dial with 11 digit pattern but unable to dial with the above pattern.i have tried few dial plan but it was not working.Can some one help me out?

Thanks
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,415
376
83
I assume you are referring to the destination number in Outbound Routes. Try this:

^(\+88\d{11})

This means the number must start with +88 and then be followed with exactly 11 digits.
 

roney_ewu

New Member
Jun 7, 2020
19
0
1
31
Hi thank for your solution .it works too.But before this i tried this and it works.

^(\D\d{13})$
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,415
376
83
i tried this and it works.

Yes of course it will work because \D matches any non numeric character, so Z1234567892345 would be considered a valid outbound number.

As with many things, there is no right or wrong way - just what works for you.
 

roney_ewu

New Member
Jun 7, 2020
19
0
1
31
@Adrian Fretwell thanks so much .i am in just another issue .can u see this thread

 
Status
Not open for further replies.