[Kamailio-Devel] t_on_failure() is not executed in TCP when t_relay() returns 1 ???
Iñaki Baz Castillo
ibc at aliax.net
Fri Mar 20 18:31:56 CET 2009
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?
--
Iñaki Baz Castillo
More information about the Devel
mailing list