You can do this with the continue_on_fail session variable. 404 = NO_ROUTE_DESTINATION 500 & 503 = NORMAL_TEMPORARY_FAILURE and 485 is USER_BUSY So if you set the variable continue_on_fail to a comma separated list ie: <action application="set" data="NO_ROUTE_DESTINATION,NORMAL_TEMPORARY_FAILURE"/> <action application="bridge" data="sofia/gateway/blah.com/5551212"/> <action application="bridge" data="sofia/gateway/blah2.com/5551212"/> This would cause the dialplan to continue processing if blah.com returned any of the above causes. http://wiki.freeswitch.org/wiki/Channel_Variables#continue_on_fail http://wiki.freeswitch.org/wiki/Hangup_causes /b On Jul 6, 2008, at 11:09 PM, Joseph Bajin wrote:
I will use xml_curl to query a db for the cheapest routes to use. It will come back with a couple of different gateways to use. (LCR idea) Based on the response I get from the first gateway (404,503,500, 486), I want to either reroute to another gateway or send back to the originator the result that I found (486 in this case, other messages should be rerouted unless we hit the last and then send back a final response).
How can I do that in a dialplan? Can you point me some documention maybe?
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org