This message was deleted.
# ask-ai
s
This message was deleted.
t
Thanks for reaching out, Rahul. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! If you want to transfer a call to a human agent using SIP in LiveKit, you can use the
transfer_sip_participant
API. Here’s a simple way to go about it: • First, make sure your SIP trunk provider supports PSTN transfers and that SIP REFER is enabled. • Then, use the
TransferSIPParticipantRequest
to set the room name, participant identity, and the phone number you want to transfer the call to, formatted like
tel:+1234567890
. • Don’t forget to set up the necessary environment variables such as
SIP_TRUNK_ID
,
LIVEKIT_URL
,
LIVEKIT_API_KEY
, and
LIVEKIT_API_SECRET
. If you’d like, I’m here to help with more details or a code example—just let me know!