jorg_98815
08/30/2025, 9:11 AMAI Evy
08/30/2025, 9:11 AMAI Evy
08/30/2025, 9:12 AMAI Evy
08/30/2025, 9:12 AMX- [(1) ]() . The P-Preferred-Identity header doesn't follow this required format.
For outbound calls, you can add custom SIP headers using the custom_sip_headers parameter [(1) ]() [(2) ]() . Here's the code example for making an outbound call with custom SIP headers:
javascript
const registerCallResponse = await retell.call.createPhoneCall({
from_number: '+14157774444', // replace with the number you purchased
to_number: '+12137774445', // replace with the number you want to call
retell_llm_dynamic_variables: { // replace with the dynamic variables you want to send (optional)
name: 'John Doe',
blood_group: 'B+'
},
custom_sip_headers: { // replace with custom sip headers you want to send (optional)
X-Custom-Header: 'Custom Value'
}
}) ;
[(2) ]()
Since P-Preferred-Identity doesn't start with X-, it won't work with Retell AI's current custom SIP header implementation [(1) ]() . You would need to use a header name like X-Preferred-Identity instead.AI Evy
08/30/2025, 9:12 AMjorg_98815
08/30/2025, 9:19 AMjorg_98815
08/30/2025, 9:19 AMAI Evy
08/30/2025, 9:19 AMAI Evy
08/30/2025, 9:19 AMX- as this is how Retell AI identifies and processes custom headers [(1) ]() .
For inbound calls, the documentation specifically states that custom SIP headers "that starts with X- or `x-`" are automatically received, extracted and made available in the call.custom_sip_headers field . For outbound calls and call transfers, the requirement is that custom SIP headers "must starts with `X-`" [(1) ]() [(2) ]() .
This X- prefix requirement appears to be Retell AI's implementation design for distinguishing custom headers from standard SIP headers. The documentation doesn't provide the specific technical reasoning behind this design choice, but it's consistently enforced across all custom SIP header functionality in the platform .AI Evy
08/30/2025, 9:19 AMAI Evy
08/30/2025, 9:19 AMjorg_98815
09/11/2025, 10:12 PMAI Evy
09/11/2025, 10:12 PMAI Evy
09/11/2025, 10:12 PMAI Evy
09/11/2025, 10:12 PMAI Evy
09/11/2025, 10:12 PM