Hi, Does anyone have any advice in how to implement PSTN failover should an internet connection for IAX trunking go down? to route outbound to analog lines Can this be written into the dialplan using a GotoIf statement by testing the whether the internet connection is up, or from a IAX/SIP response? Thanks Robert McNaught -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071015/9914efe8/attachment.htm
On Mon, 15 Oct 2007, Robert McNaught wrote:> Does anyone have any advice in how to implement PSTN failover should an > internet connection for IAX trunking go down? to route outbound to > analog lines > > Can this be written into the dialplan using a GotoIf statement by > testing the whether the internet connection is up, or from a IAX/SIP > response?In the dial plan, you can simply have a second instruction with another Dial() command that will only be hit if the first Dial() command fails. This is automatic behaviour. Or, if you prefer, you can use ChanAvail() to check if the SIP / IAX trunk is up and that reachability through it has been verified through 'qualify=' (if you have this turned on), and in the event that it is not, use GotoIf() to route out to the PSTN via analog lines, like you said. -- Alex Balashov Evariste Systems Web : http://www.evaristesys.com/ Tel : +1-678-954-0670 Direct : +1-678-954-0671
----- Original Message ----- From: "Alex Balashov" <abalashov at evaristesys.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Sent: Tuesday, October 16, 2007 1:12 AM Subject: Re: [asterisk-users] PSTN failover> On Tue, 16 Oct 2007, Dovid B wrote: > >> Chanisavail does not work well for this. I would use priority jumping >> (n+101). > > Why not?I have seen where it will go to n+101 when the trunk was in use as well as the carrier may be up but it may reject the call. First see if they take the call if not we can always send it else where.