<div dir="ltr"><div dir="auto">You can use tcpops tcp_enable_keepalive (<a href="http://www.kamailio.org/docs/modules/devel/modules/tcpops.html#tcpops.f.tcp_keepalive_enable">http://www.kamailio.org/docs/modules/devel/modules/tcpops.html#tcpops.f.tcp_keepalive_enable</a>) to enable tcp keepalive per connection.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 28 Nov 2020, 16:47 sergey-safarov, <<a href="mailto:notifications@github.com" target="_blank">notifications@github.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p></p>
<p>If the client does not send TCP keep-alive SIP message or TCP session timer on NAT router is too low then we have an issue.</p>
<p>As a workaround, I can use the operation system keepalive on the server-side.</p>
<pre><code>net.ipv4.tcp_keepalive_time = 75
</code></pre>

<p style="font-size:small;color:#666">—<br>You are receiving this because you commented.<br>Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2564#issuecomment-735247057" rel="noreferrer" target="_blank">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZO5DC5MH2QOFXNILX3SSELPBANCNFSM4UF275CA" rel="noreferrer" target="_blank">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZO6TY3YERL3F3RLWLLSSELPBA5CNFSM4UF275CKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFPJPVUI.gif" height="1" width="1" alt=""></p>
_______________________________________________<br>
Kamailio (SER) - Development Mailing List<br>
<a href="mailto:sr-dev@lists.kamailio.org" rel="noreferrer" target="_blank">sr-dev@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</blockquote></div>
</div>