[Asterisk-Users] IAX outgoing redundancy
Adi Linden
adil at adis.on.ca
Sat Jan 22 16:24:04 MST 2005
Hi,
I have my IAX peers setup in iax.conf and use a qualify statement to see
whether the peer is up or not. I then use a macro for each peer. This way
I can take appropriate action depending on the DIALSTATUS variable.
exten => _9011.,1,Macro(gw-voipjet,${EXTEN:1}) ; VoipJet.com WORLD
exten => _9011.,2,Macro(gw-nufone,${EXTEN:1}) ; NuFone WORLD
[macro-gw-voipjet]
;
; This is the VoipJet IAX peer
;
; Use: Macro(gw-voipjet,${EXTEN})
; Requires 'qualify=' statement in iax.conf for fallthru to work
;
exten => s,1,SetCIDNum(${PSTN_CIDNUM})
exten => s,2,Dial,IAX2/xxxx at voipjet/${ARG1}
exten => s,3,Goto(dial-${DIALSTATUS},1)
exten => dial-BUSY,1,Busy
exten => dial-CANCEL,1,Hangup
exten => dial-ANSWER,1,Hangup
exten => dial-NOANSWER,1,Hangup
exten => dial-CHANUNAVAIL,1,Noop
exten => _dial-.,1,Congestion
Adi
On Sat, 22 Jan 2005, Brian Dingman wrote:
> Did you ever figure a way around this? It would be a good time to test
> since LiveVoip is having some issues today.
>
>
> On Sat, 8 Jan 2005 14:44:23 -0500, Nabeel Jafferali
> <nabeel at jafferali.net> wrote:
> Hello.
>
> I am having an issue where sometimes the cheapest provider for certain
> international destinations is not always reliable in completing calls.
> However, there is not problem once the call is made (i.e. no lag or echo
> or anything). The way I have it set up right now (for example) for Dar
> es Salaam, Tanzania is:
>
> exten => _925522XX.,1,Dial(IAX2/livevoip/011${EXTEN:1})
> exten => _925522XX.,102,Dial(IAX2/voipjet/011${EXTEN:1})
>
> If LiveVOIP's servers are down, it use VoipJet to complete the call,
> which is great. But if LiveVOIP keeps saying "progress", * waits and
> eventually times out. (BTW This is not just a problem with LiveVOIP -
> for some other countries where VoipJet is primary I've had similar
> problems).
>
> Are there any ways to get around this problem? Is there a way to timeout
> if "ringing" doesn't happen in 5 secs (for example) and go to the backup
> provider?
> _______________________________________________
> 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