SIP headers are available for phone calls only. Retell receives SIP headers on inbound calls, and sets them on outbound calls and transfers.
Parse custom SIP headers for inbound calls
For inbound calls, custom SIP headers (those starting withX- or x-) are received and extracted automatically into call.custom_sip_headers. They are also added to your dynamic variables, where you access them by stripping the X- or x- prefix. No configuration is needed.
For example, if this is the SIP header received for an inbound call:
call.custom_sip_headers field, and they will be added to your dynamic variables.
Set custom SIP headers for outbound calls

X-.
Set custom SIP headers for call transfers
For call transfers, you can also add custom SIP headers as needed. Each must start withX-. You can use a dynamic variable for the header value to pass information extracted from the call to the receiving party.
If you are using:
- Conversation flow agents, check out call transfer node for more details.
- Single / multi agent, check out call transfer function for more details.

