[Asterisk-Users] failover outbound dialplan

Steve Edwards asterisk.org at sedwards.com
Thu Apr 7 19:10:51 MST 2005


On Thu, 7 Apr 2005, Jason Brown wrote:

> Does anyone have a working failover outbound calls that I could sponge a
> hint from? i.e.
>
> Exten => _1NXXNXXXXXX,1,Dial(IAX/MyFirstCrappyIAXPeer/${EXTEN},60)
>
> Exten =>
> _1NXXNXXXXXX,2,Dial(IAX/IfMyFirstCrappyIAXPeerDontAnswerIn5SecDialMySecondCr
> appyIAXPeer
>
> Exten =>
> _1NXXNXXXXXX,3,Dial(IAX/IfTheyBothDontAnswerTryTheNextCrappyIAXPeer)
>
> Exten => _1NXXNXXXXXX,4,Dial(ZAP/g1)(GiveUpTheyAllSuckSoUseThePRI)

Looks like you're already there -- this is what I use:

         exten = _1nxxnxxxxxx,1,         noop(CONTEXT=${CONTEXT})
         exten = _1nxxnxxxxxx,n,         setcidname(Steve,a)
         exten = _1nxxnxxxxxx,n,         setcidnum(760 555-5555)
; sixtel
         exten = _1nxxnxxxxxx,n,         background(newline/via-sixtel)
         exten = _1nxxnxxxxxx,n,         dial,${SIXTEL-RESOURCE}/${EXTEN}
; voicepulse
         exten = _1nxxnxxxxxx,n,         background(newline/via-voicepulse)
         exten = _1nxxnxxxxxx,n,         dial,${VOICEPULSE-RESOURCE-1}/${EXTEN}
         exten = _1nxxnxxxxxx,n,         dial,${VOICEPULSE-RESOURCE-1}/${EXTEN}
; nufone
         exten = _1nxxnxxxxxx,n,         background(newline/via-nufone)
         exten = _1nxxnxxxxxx,n,         dial,${NUFONE-RESOURCE}/${EXTEN}
; pstn
         exten = _1nxxnxxxxxx,n,         background(newline/via-pstn)
         exten = _1nxxnxxxxxx,n,         dial(${TRUNK-RESOURCE}/${EXTEN})

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline           pagesteve at sedwards.com            Fax: +1-760-731-3000



More information about the asterisk-users mailing list