Hi,

The stuck BYE, as you described is not relayed to the other end, could it be possible that Kamailio is unable to match the RURI of the BYE with the Contact header of the initial INVITE ! 
something that has to do with the contact handling in Kamailio script. This sounds like some NATd contact fix/handling situation.

If you've the pcaps of the good and bad calls, then see if the headers mismatch !

Regards,
Sammy

On Fri, Apr 24, 2020 at 5:20 PM Voip support <voipexpert0@gmail.com> wrote:
Hello,
i am using dialog module in-memory to get all dialogs and show in a website.
I use for this kamctl dialog show which is run quite often for autorefresh.

I noticed that some calls get hung on kamailio while on caller side and callee side calls are disconnected.

I captured a wireshark trace and for same caller IP i get many good calls as well some bad calls (not disconnected properly). When comparing the BYE packets i could not notice any difference.

However in the "BAD" calls it looks like the BYE from caller get stuck on kamailio and is not sent/forwarded to callee side. I get BYE retransmissions from caller and all BYE requests got stuck on kamailio.

After few seconds Callee side sends BYE and that BYE also get stuck.

I am wondering how to trace this issue (differently than taking a wireshark trace) as i dont see any difference in the good BYE and the bad BYE.

It looks like for any reason from time to time BYE is not forwarded to the other side and when the other side sents BYE its also not forwarded to call initiator.

Please give me a clue how to continue on this.

I am using dispatcher module to send the calls.

Best regards
Tom
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users