How To Check Channel Status And Move On Silently?

Home » Asterisk Users » How To Check Channel Status And Move On Silently?
Asterisk Users 1 Comment

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?

One thought on - How To Check Channel Status And Move On Silently?

  • Dear list (FTPer, think I finally spotted one I can help with!)

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

    Hope this helps!

    Pete Mundy