<div dir="ltr">thanks daniel<div><br><div>might be good to add to documentation<br><div><br></div></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Kelvin Chua</div></div>
<br><div class="gmail_quote">On Mon, Nov 13, 2017 at 4:32 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<span class=""><br>
<br>
On 11.11.17 07:04, Kelvin Chua wrote:<br>
> hi guys,<br>
><br>
> has anyone of you tried playing around with a scenario similar to this?<br>
><br>
> A. invite -> t_set_fr() 2 secondsĀ  - if "100 trying" not received in 2<br>
> seconds, timeout. works fine.<br>
> B. after receiving "100 trying" received, t_set_fr() 30 seconds - if<br>
> 18x not received in 30 seconds, timeout. works fine<br>
> C. after receiving the first 180, t_set_fr() 10 seconds - if "200 ok"<br>
> not received in 10 seconds, it will not timeout, but instead it will<br>
> timeout 30 seconds after B.<br>
><br>
> i noticed this behavior recently and noticed that when a previous<br>
> t_set_fr() is bigger than the new one, it will be ignored. so if i did<br>
> 2 -> 10 -> 30, it works (swapping timeout values of B and C)<br>
><br>
> my question is, is this an expected behavior?<br>
><br>
</span>just time for a very quick look at the code and I could see that only<br>
values for these timers are set by t_set_fr(), the transaction callback<br>
is not taken out and added to the timer lists. So, given that the<br>
previous timeout was longer, the callback was not executed yet and the<br>
new value is not seen. When the value is higher, then when callback is<br>
executed, then the new value is seen and used.<br>
<br>
I haven't implemented this part, and again, just a very quick look at<br>
the code, but for now is seems to be the way it works...<br>
<br>
Cheers,<br>
Daniel<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Daniel-Constantin Mierla<br>
<a href="http://www.twitter.com/miconda" rel="noreferrer" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">www.linkedin.com/in/miconda</a><br>
Kamailio Advanced Training, Nov 13-15, 2017, in Berlin - <a href="http://www.asipto.com" rel="noreferrer" target="_blank">www.asipto.com</a><br>
Kamailio World Conference - <a href="http://www.kamailioworld.com" rel="noreferrer" target="_blank">www.kamailioworld.com</a><br>
<br>
</font></span></blockquote></div><br></div>