[asterisk-users] Backuping VoIP provider with PRI

Marc Patino Gómez mpatino at es.clara.net
Tue Sep 25 04:09:24 CDT 2007


Hi list,

My Asterisk config for outgoing calls is the following:

exten => s,1,Dial(SIP/${MACRO_EXTEN}@voipprovider,60,g)
exten => s,n,GotoIf($[\"${ANSWEREDTIME}\" = \"\"]?pri:hang)
exten => s,n(pri),NoOp(Problems with voip provider trying PRI)
exten => s,n,Dial(Zap/g2/${MACRO_EXTEN},60,g)
exten => s,n(hang),HangUp


in most cases it works well but, if my internet connection is down 
Asterisk tries to Dial voipprovider, but it can't resolve the dns name, 
so.... it waits 60 seconds to jump to the following priority...

Any ideas to solve this problem? I can't use the IP of the provider (it 
has a pool of servers), I try to use dnsmgr without solving the isue

Thanks in advance,

Marc

PD: I have used more sophisticate configs using DIALSTATUS variable, but 
the problem persists



More information about the asterisk-users mailing list