On 08/12/10 17:53, Danny Nicholas wrote:
> 
> Thanks
> 
>  
> 
> Just my .02, but since you’re going to (quite possibly) have a long(ish)
> timeout if internet connection or SIP provider is down, I would have an
> AGI run in front of my dial that did a ping to verify internet and sip
> provider connectivity.  Something like this:
> 
> Exten => s,1,AGI(verconn.agi)
> 
> Exten => s,n,gotoif(${CONNUP} = yes?3:4)
> 
> Exten => s,n,Dial(SIP…)
> 
> Exten => s,n,Dial(DAHDI…)

I use the following

exten => _9X.,n,Set(TMP=${SIPPEER(sip_outbound,status)})
exten => _9X.,n,GotoIf($["${TMP:0:2}" != "OK"]?isdn)
exten => _9X.,n,Dial(${DIALOUTSIP}/${EXTEN:1})
...
exten => _9X.,n(isdn),Dial($(DIALOUTISDN)/${EXTEN:1})
...

But you mention DNS also look into the possibility of using something
like dnsmasq to give a resiliant dns for when the internet connection fails.

DC

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to