[asterisk-users] PSTN failover
Dovid B
asteriskusers at dovid.net
Mon Oct 15 17:50:23 CDT 2007
Chanisavail does not work well for this. I would use priority jumping
(n+101).
----- Original Message -----
From: "Alex Balashov" <abalashov at evaristesys.com>
To: <robert.mcnaught at gmail.com>; "Asterisk Users Mailing List -
Non-Commercial Discussion" <asterisk-users at lists.digium.com>
Sent: Monday, October 15, 2007 6:47 PM
Subject: Re: [asterisk-users] PSTN failover
> 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
>
> _______________________________________________
> --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
>
More information about the asterisk-users
mailing list