<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div>Hi Kertor,<br><div>Won't dialog module create_dialog() help you achieve this ?<br><div><div><span><a href="http://www.opensips.org/html/docs/modules/2.3.x/dialog.html#idp5841392" rel="nofollow" target="_blank">http://www.opensips.org/html/docs/modules/2.3.x/dialog.html#idp5841392</a></span></div><div><br><div>you can setup in dialog pinging and make dialog end when either party unable to respond to the ReInvites.<br><span></span></div></div><span><br></span></div></div></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
<div><br></div><div><br></div>
</div><div id="yahoo_quoted_5237200845" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Friday, 24 August 2018, 2:57:12 PM GMT+5:30, kertor-f@yandex.ru <kertor-f@yandex.ru> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr">Hello everyone! Can you please help me to understand one thing. I have scheme:<br></div><div dir="ltr">|-------------------------------------------------------------------------------------------------------------------------------------------------------|<br></div><div dir="ltr">| "User with Google Chrome tab with widget" <---------------------------> (WSS)opensips(UDP) <------------> softswitch.|<br></div><div dir="ltr">| SIP in WSS(TCP) SIP(UDP) | - TRANSPORT<br></div><div dir="ltr">|__________________________________________________________________________________________|<br></div><div dir="ltr"><br></div><div dir="ltr">When the user has finished work with widget, he just close browser tab with widget. As a consequence of this, opensips cannot received BYE from widget and dialog continues, although the TCP session is closed.<br></div><div dir="ltr">I want to understand, is there a way to detect closed TCP connections and terminate calls for them automatically?<br></div><div dir="ltr">Or other situation - the user has lost the Internet connection and other.<br></div><div dir="ltr"><br></div><div dir="ltr">Thank you!<br></div><div dir="ltr"><br></div><div dir="ltr">p.s.<br></div><div dir="ltr">version: opensips 2.3.5 (x86_64/linux)<br></div><div dir="ltr">flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<br></div><div dir="ltr">ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br></div><div dir="ltr">poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br></div><div dir="ltr">main.c compiled on 00:00:26 Aug 15 2018 with gcc 4.8.5<br></div><div dir="ltr"><br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">Users mailing list<br></div><div dir="ltr"><a ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br></div><div dir="ltr"><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div></div>
</div>
</div></div></body></html>