Geoff Karl
2005-Aug-27 15:31 UTC
[Asterisk-Users] Variuos hangup codes in Manager API for failover
I am currently using the Manager API to place a few calls. I have more than one VSP available. I was wondering how to best tell a call failed to move on to the next VSP. I see messages like this, which is an obvious failure, and I would then move on to the next VSP. Event: Hangup Cause: 3 Cause-txt: No route to destination Do people have others that they check for? thanks, Geoff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050827/c39bb62e/attachment.htm
Matt Riddell
2005-Aug-28 20:35 UTC
[Asterisk-Users] Variuos hangup codes in Manager API for failover
Geoff Karl wrote:> I am currently using the Manager API to place a few calls. I have more than > one VSP available. > > I was wondering how to best tell a call failed to move on to the next VSP. > > I see messages like this, which is an obvious failure, and I would then move > on to the next VSP.Normally the way I do it is to program the failover into the dialplan and then send the call to Local/exten@context to initiate it. That way if you roll the software out to clients (who may have 1 or 100 or 100 providers set up) then they will not need to make alterations. BTW: Rather than checking for all of the possible failures that could occur why not just check for a success or lack thereof. -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
Steve Edwards
2005-Aug-28 20:44 UTC
[Asterisk-Users] Variuos hangup codes in Manager API for failover
> Normally the way I do it is to program the failover into the dialplan and then > send the call to Local/exten@context to initiate it.How about a snippet? (Local channels somewhat escape me.) On Mon, 29 Aug 2005, Matt Riddell wrote:> Geoff Karl wrote: >> I am currently using the Manager API to place a few calls. I have more than >> one VSP available. >> >> I was wondering how to best tell a call failed to move on to the next VSP. >> >> I see messages like this, which is an obvious failure, and I would then move >> on to the next VSP. > > Normally the way I do it is to program the failover into the dialplan and then > send the call to Local/exten@context to initiate it. > > That way if you roll the software out to clients (who may have 1 or 100 or 100 > providers set up) then they will not need to make alterations. > > BTW: Rather than checking for all of the possible failures that could occur > why not just check for a success or lack thereof. > > -- > Cheers, > > Matt Riddell > _______________________________________________ > > http://www.sineapps.com/news.php (Daily Asterisk News - html) > http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss) > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@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 >Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST Newline pagesteve@sedwards.com Fax: +1-760-731-3000