https://retellai.com/?utm_source=discord&utm_medium=seo logo
hi, it want to set P-Preferred-Identity header whe...
# ❓・ai-evy-support
j
@AI Evy hi, it want to set P-Preferred-Identity header when performing an outbound call, is this possible?
a
Thanks for tagging me @jorg_98815. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Set & parse custom SIP headers](https://docs.retellai.com/build/telephony/sip-headers) [[2] Outbound calls (make calls)](https://docs.retellai.com/deploy/outbound-call) ​
### Answer Yes, you can set custom SIP headers for outbound calls with Retell AI, but they must start with
X-
[(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:
Copy code
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.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
What is it necesseary that the headers start with X?
@AI Evy Why is it necesseary that the headers start with X?
a
Thanks for the follow-up, @jorg_98815. I'll get back to you soon.
### Answer Based on the Retell AI documentation, custom SIP headers must start with
X-
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 .
​ To learn more, see the sources I considered: [[1] Set & parse custom SIP headers](https://docs.retellai.com/build/telephony/sip-headers) [[2] Call Transfer Node](https://docs.retellai.com/build/conversation-flow/call-transfer-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy is it possible or will it be possible to use our own elevenlabs API key / account to use our own custom voices?
a
Thanks for the follow-up, @jorg_98815. I'll get back to you soon.
### Answer Currently, Retell AI does not support using your own ElevenLabs API key [(1) ]() . When asked about this feature, a Retell AI team member responded that "We dont have bring your own key right now. May consider it in the future" . For custom voices, you can add custom voices through Retell AI's interface by clicking "Add custom voice" in the voice selector for ElevenLabs voices [(2) ]() . This allows you to: 1. Search and add 11Labs community voices 2. Create voice clones by uploading your voice recordings to train the voice clone However, you cannot directly connect existing custom voices that you've already created in your ElevenLabs account [(3) ]() . One user reported that they "was able to connect one of my voices before, but now this option is missing" , suggesting this functionality may have been removed. The current voice clone feature uses ElevenLabs API through Retell AI's system rather than allowing you to bring your own API key or access existing voices from your ElevenLabs account .
​ To learn more, see the sources I considered: [[1] Add own ElevenLabs API key (ElevenLabs Grant)](https://discord.com/channels/1186424376300679209/1232659853676253245) [[2] Choose a custom voice](https://docs.retellai.com/build/voice) [[3] Custom Voices from ElevenLabs](https://discord.com/channels/1186424376300679209/1294954011132432384) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.