[asterisk-users] How to quickly move on to Dahdi channels when SIP provider fails?

Warren Selby wcselby at selbytech.com
Wed Dec 8 21:10:39 UTC 2010


On Wed, Dec 8, 2010 at 1:50 PM, Tilghman Lesher <tlesher at digium.com> wrote:

> On Wednesday 08 December 2010 11:33:10 Bruce B wrote:
> > Thanks for the input guys. I really appreciate all the input and I am
> > sure they work but I thought there would be a much better way to do
> > this. Sounds like patching things to me. Why doesn't Asterisk take
> > advantage of the qualify values to make sure if the SIP connection is
> > up or not? Shouldn't this become a native feature of the PBX rather
> > than trying to do work-around?
>

Enable qualify on your SIP peers.  Then configure your outbound dialplan
like this:

exten => outboundexten,1,Dial(SIP/...)
exten => outboundexten,n,Dial(DAHDI/...)

If the SIP is up, the call goes through on that Dial statement.  When the
call is over and the people hangup, it will not continue down to the next
line.  If it's down (and the system knows this because of qualify), it will
fail and automatically roll to the next line.  I've used this to setup
failover between DAHDI and SIP a few times.

-- 
Thanks,
--Warren Selby, dCAP
http://www.selbytech.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101208/20b5c453/attachment.htm 


More information about the asterisk-users mailing list