[SR-Users] Kamailio w/ external routing server
Eric Babcock
eric.babcock at gmail.com
Wed Aug 5 22:48:58 CEST 2015
Thanks! Here is the config that I have right now....
request_route {
sip_trace();
route(DISPATCH);
}
failure_route[CATCH_REDIRECT] {
if(t_is_canceled())
exit;
if(t_branch_timeout() || $T_rpl($rs) != 302) {
# Gateway timeout or unexpected non-302 response
# received; roll over to another gateway with
# ds_next_dst() or whatever.
t_on_failure("CATCH_REDIRECT");
t_relay();
exit;
}
t_relay();
}
# Dispatch requests
route[DISPATCH] {
sip_trace();
# round robin dispatching on gateways group '1'
if(!ds_select_dst("1", "4"))
{
send_reply("404", "No destination");
exit;
}
xlog("L_ALERT", "--- SCRIPT: going to <$ru> via <$du>\n");
t_on_failure("CATCH_REDIRECT");
t_relay();
exit;
}
When I place a call it acts like it is going to go, but then I get a 503
back.
--
View this message in context: http://sip-router.1086192.n5.nabble.com/Kamailio-w-external-routing-server-tp140196p140198.html
Sent from the Users mailing list archive at Nabble.com.
More information about the sr-users
mailing list