[Asterisk-Users] Fall back dialing

Chris Mason (Lists) lists at masonc.com
Thu Jun 16 05:43:47 MST 2005


We have ServerA that connects to ServerB to dial long distance via an IAX2
trunk. I have setup an international dialing plan so that there is a backup
route via pstn if the IAX channel is down.

exten => _1NXXNXXXXXX,1,Dial,IAX2/${SERVERB}/${EXTEN},60)
exten => _1NXXNXXXXXX,2,Dial(Zap/g2/${EXTEN},70)
exten => _1NXXNXXXXXX,3,Macro(fastbusy)
exten => _1NXXNXXXXXX,4,hangup
exten => _1NXXNXXXXXX,102,Dial(Zap/g2/${EXTEN},70)
exten => _1NXXNXXXXXX,103,Macro(fastbusy)
exten => _1NXXNXXXXXX,104,hangup


Would it be better to use

exten => _1NXXNXXXXXX,102,GotoIf($[${DIALSTATUS} = CHANUNAVAIL]?i,1:103)


Any other improvments? We want to make is transparent to the users.

Chris Mason
NetConcepts
Int:  (305) 704-7249 Fax: (815)301-9759 




More information about the asterisk-users mailing list