Dialplan to Dial Different Carriers Based on Last Digits of

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid

Dialplan to Dial Different Carriers Based on Last Digits of

Postby Nefariousparity » Mon Jun 03, 2013 12:50 am

Dialplan to Dial Different Carriers Based on Last Digits of phone number.

So every number ending with a 78 would dial carrier (A) every number ending in a 24 would dial carrier (b) and so on and so forth. I saw an article in the forum on the GoAutoDial site somewhere and I can't find it.

Thanks in Advance Chris!
|| DB Schema Version: 1609 || Asterisk 11.25.1-vici || BUILD: 190902-0839 ||VERSION: 2.14-718a||SVN: 3133||10xTelephony||1x Database||1x Slave||1x Web||1x Archive||ViciBox v.8.0.1
Nefariousparity
 
Posts: 327
Joined: Wed Sep 12, 2012 7:01 pm

Re: Dialplan to Dial Different Carriers Based on Last Digits

Postby Nefariousparity » Mon Jun 03, 2013 4:14 pm

I read about this twice somewhere while i was waiting for GOAD 3 to download. Like out of the box load balancing. Someone has to have seen other then me. Or did I really dream this up? :D
|| DB Schema Version: 1609 || Asterisk 11.25.1-vici || BUILD: 190902-0839 ||VERSION: 2.14-718a||SVN: 3133||10xTelephony||1x Database||1x Slave||1x Web||1x Archive||ViciBox v.8.0.1
Nefariousparity
 
Posts: 327
Joined: Wed Sep 12, 2012 7:01 pm

Re: Dialplan to Dial Different Carriers Based on Last Digits

Postby striker » Tue Jun 04, 2013 2:19 am

trunk A
exten => _9XXXXXXXXX78,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9XXXXXXXXX78,2,Dial(${TRUNKA}/${EXTEN:1},,tTor)
exten => _9XXXXXXXXX78,3,Hangup

trunkB
exten => _9XXXXXXXXX24,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9XXXXXXXXX24,2,Dial(${TRUNKB}/${EXTEN:1},,tTor)
exten => _9XXXXXXXXX24,3,Hangup

where 9 is prefix and dialing number will be 11 digits in length
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: Dialplan to Dial Different Carriers Based on Last Digits

Postby Nefariousparity » Tue Jun 04, 2013 2:27 pm

Hi Striker, thank you for the support. I only have one other question, what happens when the number does not meet either criteria?

***Edit***

So this is my current settings, and I'm getting invalid extension. I have my campaign setup to dial custom prefix of "9"

{Account Entry}
[TrunkA]
type=peer
host=*****
port=5060
dtmfmode=rfc2833
allow=ulaw
qualify=no
canreinvite=no
context=trunkoutbound

[TrunkB]
type=friend
host=38.102.250.50
port=5060
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=gsm
qualify=yes
canreinvite=no
context=trunkoutbound

{Dialplan}
exten => _9XXXXXXXXX78,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9XXXXXXXXX78,2,Dial(${TrunkA}/${EXTEN:1},,tTor)
exten => _9XXXXXXXXX78,3,Hangup

exten => _9XXXXXXXXX24,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9XXXXXXXXX24,2,Dial(${TrunkB}/${EXTEN:1},,tTor)
exten => _9XXXXXXXXX24,3,Hangup

All in one entry on the carrier page in the web based API.
|| DB Schema Version: 1609 || Asterisk 11.25.1-vici || BUILD: 190902-0839 ||VERSION: 2.14-718a||SVN: 3133||10xTelephony||1x Database||1x Slave||1x Web||1x Archive||ViciBox v.8.0.1
Nefariousparity
 
Posts: 327
Joined: Wed Sep 12, 2012 7:01 pm


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 60 guests