How to quickly move on to Dahdi channels when SIPprovider fails?

Home » Asterisk Users » How to quickly move on to Dahdi channels when SIPprovider fails?
Asterisk Users No Comments

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