We have been using LiveKit for a short period now, and we notice that sometimes ACK BYEs are not being registered, which makes the rooms stay open for thousands of minutes. It only happens occasionally. We can close the rooms manually, but our SIP provider requires that they receive proper BYEs to deploy our solution.
We are located in Europe and uses the servers in London for the most of it. We see that the Record Route for a specific instance also changes to a previously unknown IP address. We expect the Record Route to be xx.xx.xx.xx(SIP Remote IP), but the record Route becomes yyy.yyy.yyy.yyy. Which Makes our SBC send the ack BYE to this(yyy.yyy.yyy.yyy) IP address instead. When we look at a call done right after it is communicating to xx.xx.xx.xx(both Record Route and SIP Remote IP).
See figure 1 for Bye issues. Left is SIP provider, middle is SBC, and right is xx.xx.xx.xx. Record route here is: yyy.yyy.yyy.yyy
I had a look at the pcap file for the session and it displays the info "[TCP ACKed unseen segment] [TCP previous segment not captured] status:180 Ringing". I attached a screenshot of TCP Analysis Flags in Figure 2.