We have an issue where LK is not sending a bye aft...
# ask-ai
b
We have an issue where LK is not sending a bye after invoking a hang_up tool call, LK seems to drop the call and closes the room but no SIP BYE is being generated
t
Thanks for reaching out, Nick. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! The issue happens because the SIP BYE message isn’t sent when you end the call using the
delete_room
API. This method skips the SIP signaling layer, which is actually responsible for sending that BYE message. Instead, it just disconnects everyone and closes the room directly. To make sure a SIP BYE gets sent: • Try to end calls using SIP-aware APIs instead of
delete_room
. For example, you can use
TransferSIPParticipant
or other SIP-specific signaling methods. • Double-check that the SIP participant’s
sip.callStatus
is
active
before sending a BYE. • Turn on debug logging in the LiveKit SIP service so you can watch the SIP signaling and see if BYE messages are being created and sent. • Make sure your SIP trunk setup allows BYE messages through and that nothing in between is blocking them. If you want a hand with this or have a special use case where SIP signaling is super important, just give me a shout—I’m happy to help guide you through it! Sources: Agents telephony integration | LiveKit Docs | test/integration/sip_test.go | livekit/livekit_sip.pb.go | livekit-protocol/src/livekit.rs | telephony/sip_lifecycle.py