[Freeswitch-users] Help with multiple gateway dialplan failover and limits
Tim St. Pierre
fs-list at communicatefreely.net
Mon Dec 9 21:54:46 MSK 2013
Hello,
I'm having some trouble with what should be a simple dialplan operation.
For each outgoing call, I consult a database for two possible routes to
a destination number. I then want to bridge to the first gateway, and
then fallback to the second gateway if it can't complete the call.
If the call rings on the first gateway goes unanswered, I DON'T want try
the second gateway, I want the dialplan to continue so I can do
something else (either play an error, or in some cases, continue on to
the user's voice mail).
I also want to use limit_db to keep track of how many calls are on each
trunk, so that I can divert when they get full (so that new incoming
calls aren't blocked on that gateway).
I have tried using limit_execute with bridge, separating the primary and
secondary addresses of a gateway with |
I then continue on in the dialplan and run limit_execute/bridge again,
but this time with the secondary set of gateway addresses. I have to do
these separately so that limit_execute uses the correct key in the
database (otherwise, a failed call could get credited to the wrong trunk!)
The problem with the above is that unanswered calls ring twice before
continuing on. What I really need is some way to skip the second bridge
statement if the previous one returned a "NO_ANSWER"
Any ideas??
Thanks!
-Tim
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list