glamorous-oil-12326
09/15/2025, 12:17 PMtall-airline-16756
09/15/2025, 12:17 PMtall-airline-16756
09/15/2025, 12:17 PMTransferSIPParticipant API to transfer calls, it specifically relies on SIP REFER to guide the provider in connecting the caller to a new number or SIP endpoint.
At the moment, there isn’t another documented way to transfer calls without using SIP REFER, but if you have any questions or need further assistance, I’m here to help!
Sources: SIP overview | LiveKit Docs | sip-refer/agent.py | agent.py | SIP troubleshooting guide | LiveKit Docs | Transferring calls | LiveKit Docsglamorous-oil-12326
09/15/2025, 12:20 PMtall-airline-16756
09/15/2025, 12:21 PMtel:number instead of a SIP URI, LiveKit still uses the SIP REFER method behind the scenes. So, if you start a transfer with a tel: prefixed number (like tel:+15105550100), LiveKit will send a SIP REFER request through your configured SIP trunk, and the Refer-To header will include that tel: number.
Just a quick note: for this to work smoothly, SIP REFER needs to be enabled on your SIP trunk provider. Other than that, the transfer works just the same way as it does with SIP URIs. If you have any more questions or need help with this setup, feel free to ask—I’m here to help!
Sources: Transferring calls | LiveKit Docs | SIP overview | LiveKit Docs | SIP APIs | LiveKit Docs | pkg/sip/inbound.go | Agents telephony integration | LiveKit Docsglamorous-oil-12326
09/15/2025, 12:22 PMtall-airline-16756
09/15/2025, 12:23 PMCreateSIPParticipant API.
• Just make sure TLS and SRTP are enabled on your outbound trunk to keep everything encrypted.
• This approach simulates a cold transfer without needing SIP REFER.
2. Warm Handoff with Bridged Sessions:
• Here, you’d use CreateSIPParticipant to dial the target number securely.
• Once the new participant is connected, the AI agent can gracefully disconnect itself, leaving the original caller and the new participant in a secure, encrypted session.
Both of these methods help you maintain secure call handling while working around the SIP REFER limitations with TLS. If you’d like, I’m happy to provide more details or walk you through the implementation—just let me know!
Sources: Secure trunking | LiveKit Docs | sip-refer/agent.py | telephony/warm_handoff.pyglamorous-oil-12326
09/15/2025, 12:24 PMtall-airline-16756
09/15/2025, 12:25 PMglamorous-oil-12326
09/15/2025, 12:25 PMtall-airline-16756
09/15/2025, 12:26 PMCreateSIPParticipantRequest API and setting the sip_number field to the original caller's number. This way, the recipient will see the correct caller ID, and your secure signaling (TLS/SRTP) stays intact.
Here’s a simple way to do it:
1. First, configure your Twilio trunk to allow caller ID passthrough by setting --transfer-caller-id from-transferee.
2. Next, use CreateSIPParticipantRequest to start a new secure call, making sure to specify the original caller's number in the sip_number field.
3. Finally, double-check that your trunk is set up for TLS and SRTP to keep everything encrypted.
This method helps you avoid using SIP REFER, which isn’t supported with TLS, while still meeting compliance and ensuring a smooth user experience. If you’d like, I’m here to help you with any part of the implementation—just let me know!
Sources: Preserving Caller ID During SIP Transfers in LiveKit Agents | Transferring calls | LiveKit Docs | Secure trunking | LiveKit Docs