Is it possible to do warm transfer, where transfer...
# ask-ai
l
Is it possible to do warm transfer, where transfer target sees the original caller's phone no. ? I am on Twilio.
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.
Absolutely, you can perform a warm transfer where the transfer target sees the original caller's phone number when using Twilio with LiveKit. Let me walk you through how to make this happen: 1. Set the Original Caller ID: Use the
sip_number
field in
CreateSIPParticipantRequest
to pass along the original caller's phone number. This way, LiveKit will send that number as the caller ID to the transfer target. 2. Configure Twilio SIP Trunk: Head over to the Twilio Console and enable Caller ID for Transfer Target in the SIP trunk settings. Make sure to set it to "Transferor" so the original caller's number shows up. 3. Verify Caller ID: Double-check that the original caller's number is verified with Twilio or that your account has the right permissions for caller ID spoofing. This helps avoid any hiccups. If you'd like, I’m here to help with detailed steps or any other questions you might have—just let me know! Sources: Transferring calls | LiveKit Docs | Agent-assisted warm transfer | LiveKit Docs | SIP participant | LiveKit Docs | Preserving Caller ID During SIP Transfers in LiveKit Agents
l
I want to show the original caller's phone no. to transfer target, NOT the agent's number. What should I put against "*Caller ID for Transfer Target*" in Twilio?
t
To make sure the person receiving the transfer sees the original caller’s phone number instead of the agent’s, you’ll want to set the Caller ID for Transfer Target in Twilio to "Transferor". This little tweak helps keep the caller ID showing the original caller during the transfer, which can really make a difference. If you have any questions or need a hand with this, please don’t hesitate to reach out—I’m here to help!
l
why not transferee?
t
Using "Transferor" is a great choice because it makes sure the original caller's phone number shows up for the person receiving the transfer. On the other hand, if you pick "Transferee", the caller ID will show the agent or intermediary’s number instead of the original caller’s. So, for what you need, "Transferor" is definitely the way to go. If you have any more questions or need further help, just let me know—I’m here for you!
l
There is another flag: (Enable PSTN Transfer Allow Call Transfers to the PSTN via your Trunk.) Should I enable or disable?
t
To help you transfer calls smoothly, you’ll want to enable the Enable PSTN Transfer flag if the transfer target is a phone number on the PSTN (Public Switched Telephone Network). This way, your call can be directed to external phone numbers through your Twilio trunk. If your transfer target isn’t on the PSTN, like another SIP endpoint, it’s perfectly fine to leave this disabled. Feel free to reach out if you’d like me to walk you through this in more detail—I’m here to help!
l
Getting this error: 'sip_status': 'Caller ID is unauthorized. A Valid Caller ID is either a DID you have purchased from Twilio or a verified Caller ID.', 'sip_status_code': '403'
t
It looks like the error is happening because the original caller's phone number isn’t authorized to be used as a Caller ID in Twilio. Don’t worry, we can work through this together! Here are some steps that might help: 1. Verify the Caller ID: First, please check that the original caller’s phone number is verified in your Twilio account. You can easily do this by going to the Twilio Console and navigating to Phone Numbers → Verified Caller IDs. 2. Use a Twilio Number: If verifying that number isn’t an option, another friendly approach is to use a Twilio-purchased number as your Caller ID. 3. Enable Caller ID Spoofing: If your situation requires showing numbers that aren’t verified, you might want to reach out to Twilio support to request permission for Caller ID spoofing. Keep in mind, this depends on Twilio’s policies and regional rules. If you have any questions or need a hand with any of these steps, please don’t hesitate to ask. I’m here to help!
l
We want the original caller's phone no. to be shown to the transfer-target. So we can't get the original caller's phone verified as any of the customers can be making the call.
t
I understand you'd like to show the original caller's phone number to the transfer target without having to verify each number. To make this happen, you'll need to request Caller ID spoofing permissions from Twilio. This feature lets you pass unverified numbers as the Caller ID, while still following Twilio's policies and regional regulations. I'd recommend reaching out to Twilio support to get this feature enabled on your account. Once it's set up, you can include the original caller's number in the
sip_number
field during the transfer. If you have any questions or need a hand with the process, please feel free to ask. I'm here to help!
l
any other provider apart from Twlio which supports this
t
I understand it can be a bit tricky, but currently, there isn’t a confirmed SIP provider in the sources that explicitly supports unverified caller ID passthrough. Most providers, including Twilio, require caller IDs to be verified to meet compliance standards like STIR/SHAKEN regulations. Telnyx is another provider mentioned, though it’s not clear if they allow unverified caller ID. It might be a good idea to reach out to providers directly to see if they can support this feature with certain configurations or private trunk setups. If you have a specific provider in mind or would like some help exploring your options, please don’t hesitate to ask—I’m here to help! Sources: Preserving Caller ID During SIP Transfers in LiveKit Agents | Transferring calls | LiveKit Docs | livekit/sip.go
l
From Twilio:
Copy code
If you want to maintain the original caller's CallerID for the forwarded leg of the call and facilitate SHAKEN/STIR verification, you will need to pass a CallToken from the parent leg of the call to the forwarded leg.

Use a CallToken when forwarding a call
When one of your Twilio phone numbers receives an incoming call, Twilio sends a webhook to your application (this will only happen if you use POST). The request body of this webhook contains a CallToken property. The CallToken contains any SHAKEN/STIR and DIV (diversion) PASSporTs contained in the SIP headers of the incoming call.
Does Livekit supports passing this CallToken
t
Thanks so much for reaching out! I wanted to let you know that LiveKit doesn’t currently support passing a CallToken for SHAKEN/STIR verification during call forwarding. While it does allow passing custom SIP headers, it doesn’t seem to handle SHAKEN/STIR tokens or embed CallTokens in SIP messages during transfers just yet. If SHAKEN/STIR compliance is important for your setup, a good option might be to rely on your SIP trunk provider (like Twilio) to manage attestation on their end. Alternatively, exploring custom SIP header configurations could be helpful. Please feel free to reach out if you’d like me to walk you through any of this or if you have any other questions—I’m here to help! Sources: SIP participant | LiveKit Docs | Authentication | LiveKit Docs | Using Wavix to accept and make calls | LiveKit Docs | CHANGELOG.md
l
Can it be due to my Livekit agent is running outside US
t
Thanks for sharing that detail about your LiveKit agent being outside the US. Generally, the location itself shouldn’t directly affect passing a CallToken for SHAKEN/STIR verification, since this mainly depends on your SIP trunk provider’s policies and how LiveKit integrates with them. That said, regional regulations and compliance requirements for SHAKEN/STIR can differ, and that might influence how your SIP trunk provider manages caller ID and attestation. If your SIP trunk provider applies SHAKEN/STIR rules differently based on where the agent is located, it could be really helpful to check in with them. Please feel free to reach out if you’d like me to help you dig into this further—I’m here to support you!