I want to send the caller from initial room (R1) t...
# ask-ai
l
I want to send the caller from initial room (R1) to another room (R2)
t
Thanks for reaching out, Deepak. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'd be happy to help you move a caller from one room (R1) to another room (R2) in LiveKit! You can use the MoveParticipant API for this. It works by removing the participant from the current room and adding them to the destination room. Here's a simple way to do it: Key Requirements: • Make sure you have
roomAdmin
permissions for both the source and destination rooms. • This feature is available in both LiveKit Cloud and Private Cloud deployments. Example Usage:
Copy code
from livekit import api

# Assuming you have a LiveKit API client initialized
await ctx.api.room.move_participant(
    api.MoveParticipantRequest(
        room="source-room-name",
        identity="participant-identity",
        destination_room="destination-room-name",
    )
)
If your caller is a SIP participant, you can use the
transferSipParticipant
API specifically for SIP-based transfers. Please feel free to ask if you'd like more examples or help with other programming languages—I’m here to support you! Sources: livekit/livekit_room.twirp.go | src/main/kotlin/io/livekit/server/SipServiceClient.kt | livekit-protocol/livekit/protocol/room.pyi | Agent-assisted warm transfer | LiveKit Docs | Transferring calls | LiveKit Docs