[Kamailio-Devel] t_on_failure() is not executed in TCP when t_relay() returns 1 ???

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 20 19:27:21 CET 2009



On 03/20/2009 07:31 PM, Iñaki Baz Castillo wrote:
> Hi, please confirm me that the following is the "expected" behaviour:
>
>
> 1) UDP:
> -------------------------
> $ru = "sip:123123 at non-responding-IP;transport=udp";
> t_on_failure("1");
> if !t_relay() {
> 	xlog("L_WARN", "t_relay() returns negative value !!!\n");
> 	sl_reply_error();
> }
>
> failure_route[1] {
> 	xlog("L_INFO", "failure_route[|]: result: $T_reply_code\n");
> }
> -------------------------
> In this case, t_relay() returns +1, and failure_route is executed.
>
>
> 1) TCP:
> The same but changing the first line:
> -------------------------
> $ru = "sip:123123 at non-responding-IP;transport=tcp";
> -------------------------
> In this case, t_relay() returns **too** +1, but failure_route is NOT executed.
>
>
> Do I miss something? how is it possible?
>   
The other side is not responding by not sending a sip reply or by not 
accepting the tcp connection?

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
SIP Router Masterclass - Kamailio (OpenSER) Training
http://www.asipto.com/index.php/sip-router-masterclass/




More information about the Devel mailing list