[Asterisk-Users] Multiple gateways for same dial pattern

Adi Linden adil at adis.on.ca
Mon Jan 10 16:49:15 MST 2005


I can do the dial command like this to give me a 20 second timeout

    exten => _9737XXXX,1,Dial(SIP/${EXTEN:1}@172.17.99.5,20)

But this also means that after 20 seconds of ringing it goes on the next
dialpeer. I would like to be able to set the timeout Asterisk wait to
establish a connection, any connection, with the gateway to something much
shorter than it is now.

Similar to what you stated, I use VoipJet/NuFone at home. The other day
VoipJet had problems and my calls didn't go through. I took the
opportunity to try configure some sort of failover configuration to
NuFone. Couldn't make it work in an acceptable manner and had to manually
change the dialplan.

Adi


On Mon, 10 Jan 2005, Paul Rodan wrote:

> What do you mean "it also applies to busy signal"? Can you elaborate?
>
> My dial-plan is something similar, I have like
> BroadVoice/VoipJet/NuFone/LookieLoo and if I set them in order of my
> preference, I've never had the primary fail so I've never witnessed this 60
> second delay. But am interested in what solution you discover.
>
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Adi Linden
> Sent: Monday, January 10, 2005 3:09 PM
> To: asterisk-users at lists.digium.com
> Subject: [Asterisk-Users] Multiple gateways for same dial pattern
>
> Hi,
>
> How can I setup Asterisk to place calls if the same dial pattern can be
> routed through several PRI gateways. I have one way that I tried:
>
>     exten => _9737XXXX,1,Dial(SIP/${EXTEN:1}@172.17.99.5)
>     exten => _9737XXXX,2,Dial(SIP/${EXTEN:1}@172.17.99.6)
>     exten => _9737XXXX,3,Dial(SIP/${EXTEN:1}@172.17.99.7)
>     exten => _9737XXXX,4,Congestion
>     exten => _9737XXXX,102,Busy
>     exten => _9737XXXX,103,Busy
>     exten => _9737XXXX,104,Busy
>
> So what happens is that if all channels on 172.17.99.5 are in use calls
> are routed to 172.17.99.6 and if all channels are in use to 172.17.99.7.
>
> One of the problems I am experiencing is that if the gateway goes away,
> crashes or otherwise becomes unreachable, Asterisk tries to establish a
> session for almost 60 seconds before continuing with the next gateway. If
> I add a timeout to the dial command is also applies to busy signal, which
> is not suitable either.
>
> Any suggestions?
>
> Thanks,
> Adi
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list