proud-lawyer-39815
10/15/2025, 12:34 AMtall-airline-16756
10/15/2025, 12:34 AMtall-airline-16756
10/15/2025, 12:36 AMX-Custom-Property) in the SIP INVITE request by using the headers field when creating a SIP participant. Here’s an example to illustrate:
{
"sip_trunk_id": "trunk_123",
"sip_call_to": "+1234567890",
"room_name": "call_room",
"headers": {
"X-Client-ID": "abc123",
"X-Custom-Data": "priority:high"
}
}
• The destination system can then parse these headers to extract the properties you’ve sent.
• Mapping SIP Headers to Participant Attributes: You can also configure headers_to_attributes to map specific SIP headers directly to participant attributes within LiveKit, which can be really handy.
• Provider Configuration: Just a heads-up—make sure your SIP trunk provider supports custom header passthrough, as some may block or strip non-standard headers.
If you’d like, I’m here to help you with any part of the implementation or testing process. Just let me know!
Sources: SIP overview | LiveKit Docs | SIP APIs | LiveKit Docs | SIP participant | LiveKit Docs | livekit-protocol/livekit/protocol/sip.pyi | Preserving Caller ID During SIP Transfers in LiveKit Agentsproud-lawyer-39815
10/15/2025, 12:36 AMtall-airline-16756
10/15/2025, 12:37 AMproud-lawyer-39815
10/15/2025, 12:57 AMtall-airline-16756
10/15/2025, 12:58 AMsip_number field in CreateSIPParticipantRequest for you. This field is where you specify the caller ID (the "from" number) that the person receiving the outbound SIP call will see.
• If you leave this field empty, no worries—the system will automatically use the default trunk number linked to your SIP trunk as the caller ID.
• This feature is super handy in situations like SIP transfers, where you might want to keep the original caller's phone number visible instead of showing the transferring agent's number.
• Just a heads-up: whether you can set a custom caller ID depends on if your SIP trunk provider supports arbitrary caller ID passthrough. Sources: SIP APIs | LiveKit Docs | livekit/livekit_sip.pb.go | Preserving Caller ID During SIP Transfers in LiveKit Agents