[SR-Users] tcp timeout in kamailio

Federico Cabiddu federico.cabiddu at gmail.com
Thu Apr 1 10:03:58 CEST 2021

have you looked at tcpops module (
It allows to set several tcp keepalive parameters and to run event routes
for specific socket events.
Also if you want to remove location records when the corresponding socket
is closed have a look at



On Thu, Apr 1, 2021 at 9:28 AM Alexander Kudrevatykh <kudrale at yandex-team.ru>

> Hi. Is there an option for tcp timeout in kamailio?
> In my setup we have tcp peers and kamailio pings them every 5 seconds,
> but when tcp session stucks kamailio not close this session for 15
> minutes. I tried many tcp options kamailio supports, but any of them
> helps. I think kamailio can use TCP_USER_TIMEOUT on linux to detect
> such tcp sessions and reestablish failed connections?
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210401/816a1d7c/attachment.htm>

More information about the sr-users mailing list