On deleting room not getting BYE signal on kamaili...
# ask-ai
g
On deleting room not getting BYE signal on kamailio
✅ 1
t
Thanks for reaching out, YASH. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m sorry you’re running into this. I want to help diagnose why deleting a room isn’t producing a BYE to Kamailio. I don’t have enough details yet, so a few targeted questions and checks will help narrow the cause quickly. Please tell me the following: 1. How is SIP/Kamailio integrated with LiveKit in your setup? ◦ Are you using LiveKit’s SIP gateway, a custom MCU, or an intermediary SIP proxy? 1. When you “delete the room,” exactly which API or action do you call (room deletion endpoint, server-side call, admin UI)? Share the request/response if possible (no secrets). 2. Which LiveKit server/version and Kamailio version are you running? Any custom modules or routing logic in Kamailio? 3. Do participants show as disconnected in LiveKit after deletion, or do they remain connected? 4. On the Kamailio side, do you see any SIP messages at all when deletion is performed (INVITE/OPTIONS/other), or nothing? If you can, capture and share a short SIP trace (pcap/sniffer) around the time you delete the room. 5. How are SIP sessions mapped to LiveKit rooms/users? Are you using SIP-to-participant mapping based on P-Asserted-Identity, From header, or a custom header? 6. Are you expecting LiveKit to generate BYE, or for a gateway component to send BYE to Kamailio? Who is the SIP dialog owner (LiveKit side or gateway/proxy)? Quick checks you can run right now: • Check LiveKit logs at the time of deletion for any messages about participant disconnects or SIP gateway actions. Note any errors or warnings. • Verify whether the SIP dialog state for that call is being cleared in the SIP gateway. If the gateway still considers the call active, it won’t send BYE. • Confirm NAT / keepalive behavior: if Kamailio’s route to the SIP endpoint is disrupted, BYE may not reach it. • If you have a SIP gateway component, try manually terminating a participant there to see if BYE is emitted — this isolates whether the problem is LiveKit → gateway or gateway → Kamailio. If you can share answers to the questions above and any relevant logs/snippets (SIP trace, LiveKit log lines around deletion, request used to delete the room), I’ll analyze them and suggest targeted fixes (configuration changes or troubleshooting steps). , with interactive elements