Inbound and Outbound Routes

Status
Not open for further replies.

Matthew Main

Member
Jan 24, 2017
92
6
8
40
Hi Guys,

little bit of an odd one and wondered if anyone had a solution

a few of my clients use bria and as such many of the contacts on there phone are stored as +E164
so unless you have a E164 dial express on an outbound route the calls fail, this can be resolved by editing the contact on the phone to UK National Format.

If i add an E164 dial express then i can call out without editing the numbers, but here is the main issue, Adding the E164 dial expression stops the inbound destination from working.

my provider is Simwood

anyone got any ideas
 

EasyBB

Active Member
Oct 23, 2016
240
33
28
Australia
Hi Matthew,
Would you be able to post a few sanitised screenies of the dialplan blocks in question please?
 

Matthew Main

Member
Jan 24, 2017
92
6
8
40
so inbound from simwood is %e164@

outbound for simwood is

^00(\d+)$ international
^0(\d+)$ local with prefix of 44

not in use

^(\d+)$ e146

upload_2017-12-21_13-38-0.png

upload_2017-12-21_13-38-30.png
 

Matthew Main

Member
Jan 24, 2017
92
6
8
40
i have done some further testing.

i have removed all outbound routes and tested inbound with %e164 and %ukn. i have tried both with just the inter and local and work fine, i added e-164 both stop with invalid number format and if i remove all routes except e-164 i get invalid number format.

2017-12-21 16:25:07.570163 [INFO] mod_dptools.c:3418 Originate Failed. Cause: INVALID_NUMBER_FORMAT

so it appears to be just around the e-164 dial expression being added
 

EasyBB

Active Member
Oct 23, 2016
240
33
28
Australia
Please try this regex for international outbound route:
Code:
^(?:00|\+)([1-9]\d{9,})$


The for the last bridging line, choose one of the formats depending on what your provider expects:

Code:
sofoa/gateway/gw1/00$1
Code:
sofia/gateway/gw1/+$1
Code:
sofia/gateway/gw1/$1
 
Last edited:
  • Like
Reactions: shabhaz

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
Try adding something like this as the first outbound route:

^([1-9]\d{9}.*)$

I think that will work
 

Matthew Main

Member
Jan 24, 2017
92
6
8
40
done and tested all working, just wondering why the e164 outbound route affects the inbound routes, surley they should never affect each other
 
Status
Not open for further replies.