Re: [asterisk-users] How to check channel status and move on silently?

2012-12-05 Thread Pete Mundy
Dear list (FTPer, think I finally spotted one I can help with!)

> I have 10 different routes with few different providers. When I place an 
> international call, I would like the system to try all those routes and place 
> the call through whichever possible. If there is any message but an ANSWER 
> the system should move on to next route. I know this is not the best strategy 
> but there are so many bad routes now-a-days that it's becoming a headache.

I'd recommend looking at the ${DIALSTATUS} Asterisk variable and wrapping up 
some 'Dial' and 'Goto' applications in a macro that calls the first provider 
then looks at the returned ${DIALSTATUS} to make the logic decision of where to 
go from there. Then use the new macro everywhere where you would have 
previously used a single upstream dial.

Further reading references (the second one actually containing an example that 
might be a useful starting point for you to work from):

http://www.voip-info.org/wiki/view/Asterisk+variable+DIALSTATUS

http://www.voip-info.org/wiki/view/Asterisk+cmd+Goto

Hope this helps!

Pete Mundy






smime.p7s
Description: S/MIME cryptographic signature
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] How to check channel status and move on silently?

2012-12-04 Thread Bruce B
Hello,

I have 10 different routes with few different providers. When I place an
international call, I would like the system to try all those routes and
place the call through whichever possible. If there is any message but an
ANSWER the system should move on to next route. I know this is not the best
strategy but there are so many bad routes now-a-days that it's becoming a
headache.

The only requirement here is to no pass the BUSY or DECLINED codes to end
point if that is experienced. I want the user to wait on MOH for example
until the call is connected or until all routes are exhausted and then give
him a BUSY.

What would dialplan for something like this look like in Asterisk 1.8?

Thanks
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users