Consolidate Outbound Routes Dialplans

Status
Not open for further replies.

Len

Member
Mar 8, 2017
95
3
8
52
How can I put outbound dialplan for 7 digit local where it prefixes the area code along with regular North America 11 digit into same outbound dialplan ? Can someone advise the regex to use. Thx
 

hfoster

Active Member
Jan 28, 2019
674
80
28
34
I don't think these can be in the same rule, the prefixing is applied on the bridge action, before the regex capture ($1) and not part of the regex itself.

One rule selecting 7 digits with a prefix, and another with 11 digits and no prefix should do it. You may have to pay attention to the ordering if any other rules match your 7 digit regex.
 

Len

Member
Mar 8, 2017
95
3
8
52
Unless you edit the dialplan and set the destination variable based off a regex and then bridge that variable name.
Dialplan tags have a "regex" option but I am not sure how it works. see attached
 

Attachments

  • Capture.JPG
    Capture.JPG
    14.6 KB · Views: 12
Status
Not open for further replies.