<div>Yes, is is possible way, but not preferred, because appears time lag between actual time end of call(user close tab) and time when opensips drop call can be up to 25 seconds (my interval reINVITE pinging).</div><div>I mean i use create_dialog() with reINVITE, but the accuracy is less. This has a negative effect on the CDR, i have wrong call duration stat.</div><div>I want end call exactly at the same time when TCP connection closed.</div><div> </div><div>24.08.2018, 12:42, "Pasan Meemaduma via Users" <users@lists.opensips.org>:</div><blockquote type="cite"><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px;"><div>Hi Kertor,<div>Won't dialog module create_dialog() help you achieve this ?<div><span><a target="_blank" href="http://www.opensips.org/html/docs/modules/2.3.x/dialog.html#idp5841392">http://www.opensips.org/html/docs/modules/2.3.x/dialog.html#idp5841392</a></span></div><div> <div>you can setup in dialog pinging and make dialog end when either party unable to respond to the ReInvites.</div></div></div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px;"><div> </div><div> </div><div> </div></div><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, <a href="mailto:kertor-f@yandex.ru">kertor-f@yandex.ru</a> <<a href="mailto:kertor-f@yandex.ru">kertor-f@yandex.ru</a>> wrote:</div><div> </div><div> </div><div>Hello everyone! Can you please help me to understand one thing. I have scheme:</div><div>|-------------------------------------------------------------------------------------------------------------------------------------------------------|</div><div>| "User with Google Chrome tab with widget" <---------------------------> (WSS)opensips(UDP) <------------> softswitch.|</div><div>|                                                                            SIP in WSS(TCP)                                        SIP(UDP)                  | - TRANSPORT</div><div>|__________________________________________________________________________________________|</div><div> </div><div>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.</div><div>I want to understand, is there a way to detect closed TCP connections and terminate calls for them automatically?</div><div>Or other situation - the user has lost the Internet connection and other.</div><div> </div><div>Thank you!</div><div> </div><div>p.s.</div><div>version: opensips 2.3.5 (x86_64/linux)</div><div>flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT</div><div>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535</div><div>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.</div><div>main.c compiled on 00:00:26 Aug 15 2018 with gcc 4.8.5</div><div> </div><div>_______________________________________________</div><div>Users mailing list</div><div><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a></div><div><a target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div></div></div></div>,<p>_______________________________________________<br />Users mailing list<br /><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br /><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></p></blockquote>