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




Attachment: 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

Reply via email to