green-parrot-24267
10/22/2025, 8:37 AMtall-airline-16756
10/22/2025, 8:37 AMtall-airline-16756
10/22/2025, 8:39 AMdeparture_timeout parameter doesn't apply to outbound SIP calls in LiveKit, but don’t worry—there are other timeout settings that can help you manage those calls effectively, like:
• Ringing Timeout: This controls how long the system waits for the call to be answered.
• Max Call Duration: This sets the maximum length of the entire call.
• Media Timeouts: These handle scenarios where RTP/media timeouts occur.
If you’re aiming for a specific timeout behavior, like cleaning up calls when participants leave, just let me know! I’d be happy to walk you through the right configuration to get things working smoothly.
Sources: livekit-protocol/livekit/protocol/sip.pyi | packages/livekit-server-sdk/src/SipClient.ts | lib/livekit/proto/livekit_sip_pb.rb | test/integration/sip_test.go | protobufs/livekit_sip.protogreen-parrot-24267
10/22/2025, 8:44 AMtall-airline-16756
10/22/2025, 8:46 AMparticipant_disconnected event—that’s how you’ll know when the SIP participant has left the room.
• Delete the Room: Once you detect that, you can use the DeleteRoom API to end the session for everyone and stop any ongoing egress. This way, everything closes up nicely.
Here’s a simple example showing how you might watch for the disconnection and then delete the room:
def on_participant_disconnected_handler(participant):
if participant.kind == "PARTICIPANT_KIND_SIP":
# Trigger room deletion logic here
delete_room(participant.room_name)
def delete_room(room_name):
# Call the DeleteRoom API to end the room
api.room.delete_room(room=room_name)
I hope this helps you manage the room smoothly! If you have any questions or want to walk through the implementation together, just let me know—I’m here to help.