[Asterisk-Users] Call failover and redundancy

Todd Lieberman lists at tlsolutions.net
Wed Nov 10 06:52:39 MST 2004


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Craig
Waddington
Sent: Wednesday, November 10, 2004 5:19 AM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Call failover and redundancy


Recently our provider had an issue, so we couldn't make VOIP calls.

We currently have a BRI which we use for incoming calls, at the moment I
have the below in my dialplan, so if our VOIP provider or our internet
drops, the "outgoing" calls are sent through the ISDN Bri.

The problem is, it takes 30 seconds of trying the IAX account, before it
uses the BRI, is there a timeout I can insert somehow, so if a call fails on
VOIP, a few seconds later it switches to the ISDN outgoing?

My current Extensions.conf

exten => _[68]XXXXX,1,Dial(IAX2/user:pass at iax.provider.com/44${EXTEN})
exten => _[68]XXXXX,2,Dial(${ISDN1}:${EXTEN})
exten => _[68]XXXXX,102,Congestion
exten => _[68]XXXXX,103,Busy


----------------------------------------------------------------------------
------------------

This is how I do it.  This way if you get a busy signal from the first
server, you don't dial out on your ISDN line.  However, if server 1 is down
you'll go out over your ISDN line.


exten => _.,1,Dial(IAX2/server1/${EXTEN})
exten => _.,3,Dial(IAX2/server2/${EXTEN})
exten => _.,102,GotoIf( $[ ${DIALSTATUS} = "BUSY" ] ? 110 : 3 )
exten => _.,104,GotoIf( $[ ${DIALSTATUS} = "BUSY" ] ? 110 : 105 )
exten => _.,105,Congestion
exten => _.,110,Busy












More information about the asterisk-users mailing list