I need to think this a bit more.

Ideally, I want the routing go into failure route without sending a 408. Not sure if it’s possible.

 

From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla
Sent: Thursday, 26 June 2014 8:03 p.m.
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] How to stop kamailio from send 408?

 

Hello,

sl_send_reply() sends the SIP response in stateless mode. In that way, the transaction state is not updated at all, tm module sending its own response as well (the 408).

You can use t_reply() instead of sl_send_reply() for overwriting tm's response code.

The return code of the function is available in $rc.

t_relay();
$var(rc) = $rc;
xlog("t_relay returned $var(rc)\n");

Above I stored $rc in a temporary variable (which is not really needed in this example) -- in that way you are sure it doesn't get overwritten in case you execute other functions before you interpret it.

Cheers,
Daniel

On 26/06/14 06:31, Allen Zhang wrote:

Hi,

 

when t_relay() times out, calling sl_reply_error() will send 408 to the client.

But if I don’t want to send 408, how do I interpret the error code t_relay() set?

 

Regards,

 

Allen

 




_______________________________________________
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



-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda