Hi,
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.

Thanks,

- Jayesh

On Tue, Jul 12, 2016 at 4:50 PM Sebastian Damm <damm@sipgate.de> wrote:
Hello,

On Tue, Jul 12, 2016 at 12:55 PM, Daniel-Constantin Mierla
<miconda@gmail.com> wrote:
> if you set t_on_failure() before t_suspend(), then you should get
> failure_route executed when the transaction timed out in suspended state.

That's exactly how it works. We set up something like this last week.

route{
    t_on_failure("handlefailedcalls");
    t_suspend();
    [..]
}

failure_route[handlefailedcalls] {
    if (t_check_status("408") {
        xlog("L_DBG", "Call timed out.\n");
    }
}


If you set AVPs in the correct place during a call (e.g. before
suspending, when receiving a ringing), you can check wether it was a
timeout during suspend or a 408 received from the far end or a timeout
during ringing.

Best Regards,
Sebastian

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users