<div dir="ltr">Hi,<div>have you looked at tcpops module (<a href="http://kamailio.org/docs/modules/5.4.x/modules/tcpops.html">http://kamailio.org/docs/modules/5.4.x/modules/tcpops.html</a>)?</div><div>It allows to set several tcp keepalive parameters and to run event routes for specific socket events.</div><div>Also if you want to remove location records when the corresponding socket is closed have a look at <a href="http://www.kamailio.org/docs/modules/5.4.x/modules/usrloc.html#usrloc.p.handle_lost_tcp">http://www.kamailio.org/docs/modules/5.4.x/modules/usrloc.html#usrloc.p.handle_lost_tcp</a>.</div><div><br></div><div>Cheers,</div><div><br></div><div>Federico</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 1, 2021 at 9:28 AM Alexander Kudrevatykh <<a href="mailto:kudrale@yandex-team.ru">kudrale@yandex-team.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi. Is there an option for tcp timeout in kamailio?<br>
In my setup we have tcp peers and kamailio pings them every 5 seconds,<br>
but when tcp session stucks kamailio not close this session for 15<br>
minutes. I tried many tcp options kamailio supports, but any of them<br>
helps. I think kamailio can use TCP_USER_TIMEOUT on linux to detect<br>
such tcp sessions and reestablish failed connections?<br>
<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>