<div dir="ltr">Hi,<div>I didnt cross my mind that I can use t_on_failure before t_suspend. I'll try that right away. Used to writing that before t_relay every time.</div><div><br></div><div>Thanks,</div><div><br></div><div>- Jayesh</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jul 12, 2016 at 4:50 PM Sebastian Damm <<a href="mailto:damm@sipgate.de">damm@sipgate.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
On Tue, Jul 12, 2016 at 12:55 PM, Daniel-Constantin Mierla<br>
<<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>> wrote:<br>
> if you set t_on_failure() before t_suspend(), then you should get<br>
> failure_route executed when the transaction timed out in suspended state.<br>
<br>
That's exactly how it works. We set up something like this last week.<br>
<br>
route{<br>
    t_on_failure("handlefailedcalls");<br>
    t_suspend();<br>
    [..]<br>
}<br>
<br>
failure_route[handlefailedcalls] {<br>
    if (t_check_status("408") {<br>
        xlog("L_DBG", "Call timed out.\n");<br>
    }<br>
}<br>
<br>
<br>
If you set AVPs in the correct place during a call (e.g. before<br>
suspending, when receiving a ringing), you can check wether it was a<br>
timeout during suspend or a 408 received from the far end or a timeout<br>
during ringing.<br>
<br>
Best Regards,<br>
Sebastian<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a 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>
</blockquote></div>