Tuesday, September 25, 2007

[asterisk-users] Backuping VoIP provider with PRI

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

_______________________________________________

Sign up now for AstriCon 2007! September 25-28th.

http://www.astricon.net/


--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

http://lists.digium.com/mailman/listinfo/asterisk-users

No comments: