Matt Davies | MattDavies.Net
2004-Jun-22 11:16 UTC
[Asterisk-Users] Failover of IAX or Spillover as the case may be
I am in process of setting up an Asterix PBX. I expect to have many outbound long distance calls made simultaneously. I just contacted voicepulse regarding their Connect service. They support 4 outbound calls at a time. My question is - How does one configure Asterix to use: 1. Another voicepulse account? (spillover) 2. If first account is not functional route to another IAX (failover) I know these are somewhat different, but they (in my mind) relate somewhat to ensuring cheaper long distance calls. TIA Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040622/47ad3079/attachment.htm
Hermann Wecke
2004-Jun-22 14:40 UTC
[Asterisk-Users] Failover of IAX or Spillover as the case may be
On Tue, 22 Jun 2004, Matt Davies | MattDavies.Net wrote:> My question is - How does one configure Asterix to use: > 1. Another voicepulse account? (spillover) > 2. If first account is not functional route to another IAX (failover)This is what I do: exten => _1NXXNXXXXXX,1,Dial(IAX2/username@voicepulse1/${EXTEN}) exten => _1NXXNXXXXXX,2,Dial(IAX2/username@gafachi/${EXTEN}) exten => _1NXXNXXXXXX,3,Dial(IAX2/username@jhcloos/${EXTEN}) exten => _1NXXNXXXXXX,4,Dial(IAX2/username@NuFone/${EXTEN}) exten => _1NXXNXXXXXX,5,Dial(IAX2/username@voicepulse2/${EXTEN}) exten => _1NXXNXXXXXX,6,PlayBack(gsm/all-circuits-busy-now) exten => _1NXXNXXXXXX,7,PlayBack(gsm/pls-try-call-later) exten => _1NXXNXXXXXX,8,Playtones(congestion) exten => _1NXXNXXXXXX,9,Wait(3) exten => _1NXXNXXXXXX,10,Hangup
Philipp von Klitzing
2004-Jun-23 03:01 UTC
[Asterisk-Users] Failover of IAX or Spillover as the case may be
Hi!> outbound long distance calls made simultaneously. I just contacted > voicepulse regarding their Connect service. They support 4 outbound calls > at a time. > > My question is - How does one configure Asterix to use: > > 1. Another voicepulse account? (spillover) > 2. If first account is not functional route to another IAX (failover)First of all: Use SetGroup(), CheckGroup() and GetGroupCount() to solve your problem. Secondly you could also use the exit codes of Dial() for failover action, but better prevent the necessity for that with the help of SetGroup(). Cheers, Philipp