How do you check an iax2 trunk status before sending call through it?

wsgator
Posts: 3
Member Since:
2007-10-31

I have a misc destination set up to send an incoming call through an iax2 trunk to another trixbox. My problem is that I need to check and make sure it has not dropped out due to a vpn failure before the call goes through and give the caller an 'all circuits are busy now' message. any idea on an asterisk script that will check this?



dickson
Posts: 1831
Member Since:
2006-06-02
Do you want to route that

Do you want to route that call to another trunk? Or have it play a different message other than the "all circuits are busy" one?



wsgator
Posts: 3
Member Since:
2007-10-31
I want to route

I want to route the call to another Trixbox. If the trunk is down, I want the call kept local otherwise I want the call sent to another trixbox system through a iax2 trunk.



dickson
Posts: 1831
Member Since:
2006-06-02
You can configure your

You can configure your outbound route to use multiple trunks, in descending order of preference. Doesn't work in some situations, but how about yours? Put the IAX trunk first, then your secondary pbx trunk as second in the list. First one fails, call will fall to the second one.



wsgator
Posts: 3
Member Since:
2007-10-31
I don't see how

The only problem with that is the second route (fail over) would be a queue, not a trunk, and is not offered on that screen.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.