[SR-Users] getting the local 408 response

Jayesh Nambiar jayesh1017 at gmail.com
Tue Jul 12 13:57:15 CEST 2016


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 at sipgate.de> wrote:

> Hello,
>
> On Tue, Jul 12, 2016 at 12:55 PM, Daniel-Constantin Mierla
> <miconda at 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160712/6bb3871a/attachment.html>


More information about the sr-users mailing list