many-machine-74335
05/08/2025, 6:52 AMtall-airline-16756
05/08/2025, 6:52 AMtall-airline-16756
05/08/2025, 6:52 AMCreateSIPParticipantRequest
for an outbound call, you can use the headers
property in your request. This allows you to include custom SIP headers when making outbound calls.
Here’s an example of how you can structure your request:
{
"sip_trunk_id": "<your-trunk-id>",
"sip_call_to": "<phone-number-to-dial>",
"room_name": "my-sip-room",
"participant_identity": "sip-test",
"participant_name": "Test Caller",
"headers": {
"X-Custom-Header": "custom-value",
"Another-Header": "another-value"
}
}
The headers
property accepts an object where each key-value pair represents a SIP header name and its value that will be included in the outbound call request.
Sources: CreateSipParticipantOptions | LiveKit JS Server SDK - v2.9.7many-machine-74335
05/08/2025, 7:18 AMtall-airline-16756
05/08/2025, 7:18 AMinclude_headers
parameter in the CreateSIPParticipantRequest
allows you to specify how SIP headers should be mapped to attributes. It accepts a SIPHeaderOptions
type and is an optional parameter.
This parameter can be used when creating a SIP participant to make outgoing calls, enabling you to control how SIP headers are handled and mapped to participant attributes.
Sources: SIP APIs | LiveKit Docsmany-machine-74335
05/08/2025, 7:19 AMtall-airline-16756
05/08/2025, 7:19 AMmany-machine-74335
05/08/2025, 7:23 AMinclude_headers=SIP_NO_HEADERS