If a call is forwarded to the agent from another n...
# ask-ai
b
If a call is forwarded to the agent from another number, is that number that was initially called known?
t
Thanks for reaching out, Hannes. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely! When a call is forwarded to an agent, you can definitely see the number that was originally called. This is available through the
sip.trunkPhoneNumber
attribute, which holds the phone number dialed by the end user. Plus, you can also find the caller's phone number in the
sip.phoneNumber
attribute, unless it’s been hidden due to certain dispatch rule settings. If you have any questions about this or need a hand with anything else, I’m here to help! Sources: Preserving Caller ID During SIP Transfers in LiveKit Agents | SIP participant | LiveKit Docs
b
I am talking about the number that was called by the user, and not the user's number
t
Thank you so much for clarifying that! I’m happy to let you know that the number the user originally called is indeed available. You can find this information stored in the
sip.trunkPhoneNumber
attribute, which represents the phone number dialed by the end user. If you have any more questions, feel free to ask—I’m here to help!
b
In Twilio do I need to set the caller ID as transferor or as transfaree or is this unrelated?
t
When you're setting up call transfers in Twilio, a helpful tip is to set the caller ID to the transferee (that’s the original caller). This way, the agent receiving the call can see the actual caller’s phone number instead of the transferring agent’s number. You can easily do this in the Twilio console under the Elastic SIP Trunking settings, or if you prefer using the CLI, just set the
transfer-caller-id
to
from-transferee
. Also, it’s a good idea to double-check that your SIP trunk provider supports arbitrary caller ID passthrough. This will help make sure there are no hiccups when displaying the original caller’s number. If you need any help with this, feel free to ask—I’m here to help! Sources: Transferring calls | LiveKit Docs | Preserving Caller ID During SIP Transfers in LiveKit Agents