[Solved]Calling out-Multiple Carriers/Trunks
Posted: Tue Jan 10, 2017 12:19 pm
Edited*: So I think my original questions and title were a little confusing so editing to see if someone may understand better and make alil more sense.
So I have 1 carrier that has multiple IP's for Inbound, Outbound, and Dialer. The IP's consist of: 1)Default 2)Backup 3)Disaster 4)Disaster Backup. In Elastix/Freepbx you create a route plan that would go through and try each trunk/carrier until successful, Is it possible to do this in Vicidial (I know it possible in Asterisk) without messing up reporting or anything else? If so what's the best way to do this, manually editing the dialplan with a text editior, editing the dialplan of my default trunk to have it try the other carriers if it responds busy or some other error?
Below is an example of our default out route, from Elastix, that uses the agents default CID for outbound calls. User presses 9 and then it try's our default ip, if that fails it then tries the next trunk/carrier, if that fails it keeps going until it reaches the end of the list and then spits out and error.
The macro takes an ID which is associated to a trunk and then tries to call out using that specific trunk. It then checks for the dial status and hang up cause and if it the call fails it breaks out and tries the next trunk.
I guess my biggest question is if I go in and edit the dialplan to do this, am I going to see any issues on my outbound reporting where I may see multiple calls around the same time using multiple trunks or any other unwanted effects?
Being a noob to vicidial want to make sure I'm not going about it in the wrong way or if I'm possibly breaking something else by doing this
Asterisk Version: Asterisk 11.25.1-vici
VERSION: 2.14-583a
BUILD: 161226-2224
So I have 1 carrier that has multiple IP's for Inbound, Outbound, and Dialer. The IP's consist of: 1)Default 2)Backup 3)Disaster 4)Disaster Backup. In Elastix/Freepbx you create a route plan that would go through and try each trunk/carrier until successful, Is it possible to do this in Vicidial (I know it possible in Asterisk) without messing up reporting or anything else? If so what's the best way to do this, manually editing the dialplan with a text editior, editing the dialplan of my default trunk to have it try the other carriers if it responds busy or some other error?
Below is an example of our default out route, from Elastix, that uses the agents default CID for outbound calls. User presses 9 and then it try's our default ip, if that fails it then tries the next trunk/carrier, if that fails it keeps going until it reaches the end of the list and then spits out and error.
- Code: Select all
[outrt-1] ; Normal OutBound
include => outrt-1-custom
exten => _9[1]NXXNXXXXXX,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _9[1]NXXNXXXXXX,n,Gosub(sub-record-check,s,1(out,${EXTEN},dontcare))
exten => _9[1]NXXNXXXXXX,n,ExecIf($[ "${CALLEE_ACCOUNCODE}" != "" ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE}))
exten => _9[1]NXXNXXXXXX,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _9[1]NXXNXXXXXX,n,Set(_NODEST=)
exten => _9[1]NXXNXXXXXX,n,Macro(dialout-trunk,4,${EXTEN:1},,on)
exten => _9[1]NXXNXXXXXX,n,Macro(dialout-trunk,1,${EXTEN:1},,on)
exten => _9[1]NXXNXXXXXX,n,Macro(dialout-trunk,3,${EXTEN:1},,on)
exten => _9[1]NXXNXXXXXX,n,Macro(dialout-trunk,2,${EXTEN:1},,on)
exten => _9[1]NXXNXXXXXX,n,Macro(dialout-trunk,5,${EXTEN:1},,on)
exten => _9[1]NXXNXXXXXX,n,Macro(dialout-trunk,6,${EXTEN:1},,on)
exten => _9[1]NXXNXXXXXX,n,Macro(dialout-trunk,7,${EXTEN:1},,on)
exten => _9[1]NXXNXXXXXX,n,Macro(dialout-trunk,8,${EXTEN:1},,on)
exten => _9[1]NXXNXXXXXX,n,Macro(dialout-trunk,9,${EXTEN:1},,on)
exten => _9[1]NXXNXXXXXX,n,Macro(outisbusy,)
The macro takes an ID which is associated to a trunk and then tries to call out using that specific trunk. It then checks for the dial status and hang up cause and if it the call fails it breaks out and tries the next trunk.
I guess my biggest question is if I go in and edit the dialplan to do this, am I going to see any issues on my outbound reporting where I may see multiple calls around the same time using multiple trunks or any other unwanted effects?
Being a noob to vicidial want to make sure I'm not going about it in the wrong way or if I'm possibly breaking something else by doing this
Asterisk Version: Asterisk 11.25.1-vici
VERSION: 2.14-583a
BUILD: 161226-2224