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

Iñaki Baz Castillo ibc at aliax.net
Tue Mar 24 12:32:56 CET 2009


2009/3/24 Juha Heinanen <jh at tutpro.com>:
> but this one i cannot reproduce.  i have

You are right, not sure why I said that.

After more testing I agree with you:


**** IP_NON_RESPONDING and t_relay("0x02"):

UDP:
- t_relay("0x02") returns true.
- failure_route is executed.

TCP:
- t_relay("0x02") returns false (-6).
- failure_route is NOT executed.


**** IP_NON_RESPONDING and t_relay():

UDP:
- t_relay() returns true.
- failure_route is executed.

TCP:
- t_relay() returns nothing. Instead generates the reply (477).
- failure_route is NOT executed.


Do you agree? If so, is it really the expected and desirable
behaviour? I don't think so.
Thanks.

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the Devel mailing list