rhythmic-account-68046
09/04/2025, 10:10 AMtall-airline-16756
09/04/2025, 10:10 AMtall-airline-16756
09/04/2025, 10:11 AMTransferSIPParticipantRequest API doesn’t directly handle transferring the original phone number to the receiving agent. That part usually depends on how your SIP trunk provider has things set up.
For instance, if you’re using providers like Twilio, they give you some control over the caller ID during a transfer with settings like transfer-caller-id. You can choose to show the original caller’s number ("from-transferee") or the trunk number ("from-transferor").
To make sure the original phone number gets passed along to the person receiving the call, here are a couple of tips:
• Take a look at your SIP trunk provider’s docs about how they handle caller ID during SIP REFER.
• Set up your trunk to use the original caller’s number by tweaking the caller ID override (like transfer-caller-id: from-transferee).
If you want, I’d be happy to help you figure out the caller ID settings for your specific SIP provider—just let me know!
Sources: livekit-agents/livekit/agents/job.py | protobufs/rpc/sip.proto | test/integration/sip_test.gorhythmic-account-68046
09/04/2025, 11:12 AMtall-airline-16756
09/04/2025, 11:12 AMsip.phoneNumber participant attribute. This handy little attribute holds the caller’s phone number for inbound calls and gets added automatically to the SIP participant’s info as soon as the call connects.
You can grab this info easily using the LiveKit SDKs or APIs by looking at the participant’s attributes in the room. The best part? You don’t have to mess around with parsing SIP headers yourself—LiveKit takes care of pulling out important details like the caller’s number and puts them right where you can find them.
If you want a hand with accessing participant attributes or working with the SDKs, just give me a shout—I’m here to help!
Sources: SIP participant | LiveKit Docs