[SR-Users] Kamailio TM - t_set_fr
José Seabra
joseseabra4 at gmail.com
Tue Dec 6 12:01:55 CET 2016
Hello there,
I'm using t_set_fr(0,2000) on calls to registered phones but by any reason
this isn't working, the call only enters on the failure route after 30
seconds in case of no response from SBC/Phone, anyone has any idea what can
be the reason for that?
if(lookup("location")) {
xlog("L_INFO", "routing to registered phone
ruid=$ruid R=$ru - ID=$ci \n");
t_set_fr(0, 2000);
t_on_failure("ASBC_FAILURE");
t_on_branch("ASBC_BRANCH");
route(RELAY);
exit;
}
My RELAY route:
route[RELAY] {
# enable additional event routes for forwarded requests
# - serial forking, RTP relaying handling, a.s.o.
if (is_method("INVITE|BYE|SUBSCRIBE|UPDATE"))
{
if(!t_is_set("branch_route")) t_on_branch("MANAGE_BRANCH");
}
if (is_method("INVITE|SUBSCRIBE|UPDATE"))
{
if(!t_is_set("onreply_route")) t_on_reply("MANAGE_REPLY");
}
if (is_method("INVITE"))
{
if(!t_is_set("failure_route"))
t_on_failure("MANAGE_FAILURE");
}
if (!t_relay())
{
sl_reply_error();
}
exit;
}
version: kamailio 4.4.2 (x86_64/linux)
Thanks
--
Cumprimentos
José Seabra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161206/8be939d3/attachment.html>
More information about the sr-users
mailing list