thnks for response. I thing - nathelper is what I need. If I resolve issue above (why it not work with setbflag(7) ) I thing this questions will be closed.
P.S may be it help - my kamailio version isversion: kamailio 4.4.0-dev1 (x86_64/linux) 1dbd53flags: 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_RESADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MBpoll method support: poll, epoll_lt, epoll_et, sigio_rt, select.id: 1dbd53compiled on 06:24:22 Jun 23 2015 with gcc 4.8.42015-06-30 18:18 GMT+03:00 Camille Oudot <camille.oudot@orange.com>:Le Tue, 30 Jun 2015 15:49:26 +0300,
Yuriy Gorlichenko <ovoshlook@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