<div dir="ltr"><div dir="ltr">Dear Community,<div><br>I wrote before about my random issues with calls disconnection.<br>We found some issue in our VMWare environment that much packets was lost.<br>We resolved the issue by moving to other VMWare host however the issue is still present.<br><br>Currently it is random and some calls do not disconnect due to no BYE forwarded by kamailio to other side.<br><br>Here is the pcap of such call : <a href="https://www.dropbox.com/s/7bktz3p4im6ztld/bad-dialog-call.zip?dl=1">https://www.dropbox.com/s/7bktz3p4im6ztld/bad-dialog-call.zip?dl=1</a><br><br>We use dialog module and dispatcher.<br><br>dlg_manage(); is only executed in this block : </div><div><br># - flags<br>#   FLT_ - per transaction (message) flags<br>#    FLB_ - per branch flags<br>#!define FLT_ACC 1<br>#!define FLT_ACCMISSED 2<br>#!define FLT_ACCFAILED 3<br>#!define FLT_DLG 4<br></div><div>.</div><div>.</div><div>.</div><div>    # account only INVITEs<br></div><div>    if (is_method("INVITE")) {<br>        setflag(FLT_DLG); # create dialog << i added it<br>        setflag(FLT_ACCMISSED); # do accounting even if failed << i added it<br>        setflag(FLT_ACC); # do accounting<br>        #route(LIMIT_CALLS);<br>        dlg_manage();<br>        sip_trace();<br>    }<br><br>I really have no idea i am unable to find differences between the bad and good call. <br>The SIP packets looking good but the BYE is not processed.<br><br>Please help me out how to debug it?<br>I was thinking of adding a log for checking if request is BYE and if it is check if it match a dialog using is_known_dlg() method.<br><br>Please let me know if you see what is wrong.<br>Just to mention kamailio is listening on private IP with advertise to public IP.<br><br>Best regards!<br></div></div></div>