<div dir="ltr"><div class="gmail_quote"><div dir="ltr">As I read at README to Nathelper it may not work with usrloc table, Is it write?<br><br>now I use NAT traversal module and Websocket module to keepalive mechanisms, that uses UDP or WS.<br><br>with UDP it is wery simple method - OPTIONS replies.<br><br>With WebSocket module keepalive mechanism uses thomething else. Not a SIP methods, I see at TCPDUMP packets that marks with modparam("websocket", "ping_application_data", "WebSockets rock")<br><br>I need to handle replies of keepaliwe mechanism. How I may handle replies form this mechanism?</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-06-30 18:37 GMT+03:00 Yuriy Gorlichenko <span dir="ltr"><<a href="mailto:ovoshlook@gmail.com" target="_blank">ovoshlook@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">thnks for response. I thing - nathelper is what I need. If I resolve issue above (why it not work with <span style="color:rgb(85,85,85);font-size:12.8000001907349px;white-space:nowrap;background-color:rgb(245,245,245)">setbflag(7) </span> ) I thing this questions will be closed.<br><br>P.S may be it help - my kamailio version is<br><br><div>version: kamailio 4.4.0-dev1 (x86_64/linux) 1dbd53</div><div>flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, DBG_F_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES</div><div>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB</div><div>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.</div><div>id: 1dbd53</div><div>compiled on 06:24:22 Jun 23 2015 with gcc 4.8.4</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-30 18:18 GMT+03:00 Camille Oudot <span dir="ltr"><<a href="mailto:camille.oudot@orange.com" target="_blank">camille.oudot@orange.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le Tue, 30 Jun 2015 15:49:26 +0300,<br>
Yuriy Gorlichenko <<a href="mailto:ovoshlook@gmail.com" target="_blank">ovoshlook@gmail.com</a>> a écrit :<br>
<span><br>
> 4) I tried to do it with tcpops<br>
><br>
> Only for ws and tcp (WS is use TCP as i know)<br>
> tcp_keepalive_enable("15", "5", "15");<br>
><br>
> same result...<br>
<br>
</span>Hi Yuriy,<br>
<br>
the tcp_keepalive_enable() function will send keepalive packets at TCP<br>
level, not at application level (SIP OPTIONS). It can be used to check<br>
if the remote peer connection is still valid, and close the TCP<br>
connection on the server side if it is no more valid. If you enable the<br>
TCP keepalives, you should see these packets using tcpdump or wireshark.<br>
<br>
Along with "handle_lost_tcp" option on usrloc, this can be used to<br>
maintain the usrloc table as consistent as possible.<br>
<span><font color="#888888"><br>
--<br>
Camille<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></div><br></div>