Hi All! Question. What I have for testing is below. It works and cycles
through the gateways for carrier 1. What I can not seem to do right is
AFTER all the GW's for carrier 1 are exhausted I would like try carrier
2 (provided a second valid carrier is returned) do_routing does this
good for me but I want to handle cost based authorization "off-server"
so I will end up returning to opensips with a variable containing a list
of valid carriers for that call.
if (route_to_carrier(#carrier1))
{
t_on_failure("next_gw");
t_relay();
}
if (route_to_carrier(#carrier2))
{
t_on_failure("next_gw");
t_relay();
exit;
}
--
Jim DeVito
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users