salmon-rainbow-65629
11/07/2025, 9:16 PMtall-airline-16756
11/07/2025, 9:17 PMtall-airline-16756
11/07/2025, 9:17 PMcreate_sip_participant with a Twilio trunk. You can do this by using the sip_number parameter in your request. This lets you specify the caller ID that will show up for the person receiving the call. If you don't provide sip_number, the system will automatically use a number from your SIP trunk configuration.
Here's a simple example in Python to guide you:
api.CreateSIPParticipantRequest(
sip_trunk_id=sip_trunk_id,
sip_call_to=target_phone_number,
sip_number=original_from_number, # This sets the caller ID
room_name=room_name,
participant_identity=participant_identity,
play_dialtone=True,
wait_until_answered=True,
)
Just a few important things to keep in mind:
• The sip_number should be a valid number in E.164 format, and Twilio expects it to start with a +.
• Make sure the number you use in sip_number is either verified in your Twilio account or is one of the numbers linked to your SIP trunk.
• If the number isn’t authorized, the call might not go through or it could show the default caller ID from your trunk.
If you'd like to dive deeper, feel free to check out the LiveKit Twilio trunk setup guide. It’s a great resource to help you along.
Sources: livekit/livekit_sip.pb.go | src/setup-twilio.ts | Preserving Caller ID During SIP Transfers in LiveKit Agents | packages/livekit-server-sdk/src/SipClient.ts | lib/livekit/sip_service_client.rbsalmon-rainbow-65629
11/07/2025, 9:18 PMtall-airline-16756
11/07/2025, 9:18 PMsalmon-rainbow-65629
11/07/2025, 9:19 PMtall-airline-16756
11/07/2025, 9:19 PM