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
I would like to mention one more thing. Documentation says:
The dialog is automatically destroyed when a “BYE” is received. In case of no “BYE”, the dialog lifetime is controlled via the default timeout (see “ default_timeout” - Section 6.6, “default_timeout (integer)” https://kamailio.org/docs/modules/5.1.x/modules/dialog.html#dialog.p.default_timeout) and custom timeout (see “timeout_avp” - Section 6.5, “timeout_avp (string)” https://kamailio.org/docs/modules/5.1.x/modules/dialog.html#dialog.p.timeout_avp). The dialog timeout is reset each time a sequential request is processed.
But in my case i can see on wireshark BYE received from caller and callee side but when running kamctl dialog show command the dialog is still on the list.
Best regards, Tom
pt., 24 kwi 2020 o 23:21 Voip support voipexpert0@gmail.com napisał(a):
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
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