<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
there are parameters for tm module to set the timeout values:
fr_timer and fr_inv_timer.<br>
<br>
When you want to set it per transaction with t_set_fr(), the best is
to do it somewhere before t_relay(), with the value you want for
that forwarding step.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 24/08/15 12:34, Loic Chabert wrote:<br>
</div>
<blockquote
cite="mid:CADLP+M0SKHkbcBRv-m+hh9VcrrVdOV_roMqHKwkh4xVCsaXKOg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>Hello Daniel,<br>
<br>
</div>
Thanks for your reply, but i dont need to set timeout
value for a particular request, i need to set it globally.<br>
</div>
Is-it possible to handle it ?<br>
</div>
If not, i will execute this function before launch
t_on_failure().<br>
<br>
</div>
Thanks.<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-08-24 12:23 GMT+02:00
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
see t_set_fr() function of tm module -- with it you can
set the timeout per transaction, for each step of
forwarding -- just use it when you want to change the
value.<br>
<br>
Cheers,<br>
Daniel
<div>
<div class="h5"><br>
<br>
<div>On 24/08/15 11:54, Loic Chabert wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">
<div>
<div>
<div>Hello everybody,<br>
<br>
</div>
I'm using kamailio as a dispatcher in front of
asterisk boxes and i use a failure route if
asterisk box does not respond or send
500error.<br>
<br>
failure_route[RTF_DISPATCH]{<br>
if(t_is_canceled()){<br>
exit();<br>
}<br>
<br>
if(t_check_status("500") ||
(t_branch_timeout() &&
!t_branch_replied())){<br>
xlog("L_WARN","[$fU@$si:$sp]{$rm} Asterisk
Box $du is down\n");<br>
ds_mark_dst("ip");<br>
if(ds_next_dst()){<br>
xlog("L_WARN","[$fU@$si:$sp]{$rm}
Sending to Asterisk Box - $du\n");<br>
t_on_failure("RTF_DISPATCH");<br>
route(RELAY);<br>
exit;<br>
}<br>
}<br>
}<br>
<br>
</div>
<div>As you can see, i check if
"t_branch_timeout() &&
!t_branch_replied()", but where has been
stored timeout value ? How can i change it ?
For exemple, i need to set 1s, and then,
request expired.<br>
</div>
<div><br>
Thanks,<br>
</div>
<div>Regards.<br>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
<span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
<span class="HOEnZb"><font color="#888888"> <br>
<pre cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
</font></span></div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</body>
</html>