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
