The on failure route was not triggered because I was doing a t_reply before
the timeout was triggered ...
On Tue, Nov 21, 2023 at 1:51 PM Julien Chavanton <jchavanton(a)gmail.com>
wrote:
Sorry for the incomplete email.
My problem is that the failure route does not trigger on TCP timeout.
...
t_on_reply("ON_REPLY_MESSAGE");
t_on_failure("FAILURE_MESSAGE");
if (!t_relay())
sl_reply_error();
I did play with some settings like
tcp_send_timeout=3
t_set_max_lifetime(3000, 3000);
I also waited a lot more than 32 seconds.
Maybe I need to run in debug mode to find out what is going on.
On Tue, Nov 21, 2023 at 1:46 PM Julien Chavanton <jchavanton(a)gmail.com>
wrote:
Hi,
I would like to catch TCP timeouts when I use a socket that was not
closed.
In this example I am sending SIP MESSAGE
...
t_on_reply("ON_REPLY_MESSAGE");
t_on_failure("FAILURE_MESSAGE");
if (!t_relay())
sl_reply_error();