[SR-Users] websocket devices keepalive not working

Camille Oudot camille.oudot at orange.com
Tue Jun 30 17:18:58 CEST 2015


Le Tue, 30 Jun 2015 15:49:26 +0300,
Yuriy Gorlichenko <ovoshlook at gmail.com> a écrit :

> 4) I tried to do it with tcpops
> 
> Only for ws and tcp (WS is use TCP as i know)
> tcp_keepalive_enable("15", "5", "15");
> 
> same result...

Hi Yuriy,

the tcp_keepalive_enable() function will send keepalive packets at TCP
level, not at application level (SIP OPTIONS). It can be used to check
if the remote peer connection is still valid, and close the TCP
connection on the server side if it is no more valid. If you enable the
TCP keepalives, you should see these packets using tcpdump or wireshark.

Along with "handle_lost_tcp" option on usrloc, this can be used to
maintain the usrloc table as consistent as possible.

-- 
Camille



More information about the sr-users mailing list