Hello,
I haven't found any error message related to tm in the logs you attached.
You say that if you omit the first parameter, everything works ok? Can you try to set the first parameter to a non-zero value?
Cheers,
Daniel
On 06/12/2016 16:45, José Seabra wrote:
José SeabraThank youLet me know if do you need anything else.I don't if this can be relevant but I have tested t_set_fr function with the following parameters => t_set_fr(,2000) and it entered on failure route after 2 seconds.Regarding to t_set_fr() function, i use it in several places within my kamailio scripts without any issue, I only noticed this behavior on this particular case.Hello Daniel,Yes, i have attached this in this email, please checkout.
2016-12-06 13:26 GMT+00:00 Daniel-Constantin Mierla <miconda@gmail.com>:--
______________________________Hello,
any error log messages? Any other t_set_fr() in your config file that may be executed?
Cheers,
Daniel
On 06/12/2016 12:01, José Seabra wrote:
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
--
CumprimentosJosé Seabra
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cg i-bin/mailman/listinfo/sr-user s -- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com_________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cg i-bin/mailman/listinfo/sr-user s CumprimentosJosé Seabra-- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com