stocky-pizza-24727
10/21/2025, 12:53 AMtall-airline-16756
10/21/2025, 12:53 AMtall-airline-16756
10/21/2025, 12:54 AMparticipant_disconnected event in the destination room.
2. In that event handler, check if the only remaining participants are SIP participants or others, and then go ahead and trigger the room deletion.
Manual Room Deletion:
If you prefer, you can delete the room yourself using the Room Service API. Here’s a simple example in Python:
await room_service.delete_room(DeleteRoomRequest(room="room-name"))
If you’d like, I’m here to help with more details or walk you through the implementation—just let me know!
Sources: livekit-api/src/services/room.rs | Job lifecycle | LiveKit Docs | Connecting to LiveKit | LiveKit Docs | examples/warm-transfer/README.md | livekit-api/livekit/api/room_service.pystocky-pizza-24727
10/21/2025, 12:55 AMtall-airline-16756
10/21/2025, 12:55 AMDisconnected event sent to all participants, with the reason being ROOM_DELETED.
If you have any more questions or need a bit more help, please don’t hesitate to ask—I’m here for you!
Sources: Managing rooms | LiveKit Docs | Connecting to LiveKit | LiveKit Docs | Job lifecycle | LiveKit Docs | telephony/sip_lifecycle.pystocky-pizza-24727
10/21/2025, 12:56 AMtall-airline-16756
10/21/2025, 12:58 AMtransfer_sip_participant API to move the SIP participants to another phone number or SIP destination. For example:
# Transfer SIP participant
ctx.transfer_sip_participant(participant, "tel:+18003310500")
1. Once the transfer is done, you can safely delete the room to avoid any extra charges.
Requirements:
• Make sure your SIP trunk provider supports call transfers (like enabling SIP REFER).
• Set up the transfer destination properly (a valid phone number or SIP address).
If you’d like, I’m here to guide you through the setup or answer any questions you have!
Sources: Agents telephony integration | LiveKit Docs | Transferring calls | LiveKit Docs | Job lifecycle | LiveKit Docs | Managing rooms | LiveKit Docs | livekit-agents/livekit/agents/job.py