[SR-Users] TCP FIN after 10 minutes

gmele giovanni.mele at nagra.com
Thu Oct 20 13:25:25 CEST 2016


we have deployed a Kamailio acting as SIP proxy on a RHEL 7.2 machine.
Clients (mainly mobile phones) connects to the proxy using a TLS protected
TCP connection. 

In the kamailio config, we've set :

#!ifdef WITH_TLS
tcp_crlf_ping = yes

Our problem is that, even if we set the tcp_connection_lifetime to > 1 hour,
the tcp connection is closed after 10 minutes: on tcp dumps, we see clearly
the TCP FIN sent by machine hosting the kamailio proxy... Setting parameters
tcp_keepidle/keepintlv/keepcnt in the kamailio config didn't change the
behavior. We also set TCP keepalived at system level, but without result...
This TCP closure is causing us lot of problems when calls between 2 UAs last
more than 10 minutes because the REINVITE or BYE messages are lost. Also,
closing the TCP connection will wake up the mobile app and make it resend a
REGISTER, thing we absolutely want to avoid.

Is there a parameter we can use to avoid this closure? I had a look in
previous posts, found people with the same problem as mine, but no real

Thx for your help.


View this message in context: http://sip-router.1086192.n5.nabble.com/TCP-FIN-after-10-minutes-tp152646.html
Sent from the Users mailing list archive at Nabble.com.

More information about the sr-users mailing list