https://retellai.com/?utm_source=discord&utm_medium=seo logo
What dynamic variable should I use to reference th...
# ❓・ai-evy-support
l
@AI Evy What dynamic variable should I use to reference the inbound caller’s phone number (the “From” number) so it can be added to the X-Headers?
a
Thanks for tagging me @luispereyra_51583. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Set & parse custom SIP headers](https://docs.retellai.com/build/telephony/sip-headers) ​
### Answer For inbound calls, you should use the
{{user_number}}
dynamic variable to reference the caller's phone number [(1) ]() . This variable contains the user's phone number, which for inbound calls is the from_number . You can use this dynamic variable in your custom SIP headers by including it in the header value when configuring call transfers [(2) ]() . For example, when setting up custom SIP headers for call transfers, you can use dynamic variables for your custom SIP header values, allowing you to pass information extracted from the call to the receiving party . The
{{user_number}}
variable is one of the default phone call variables that Retell automatically provides - no configuration is required [(1) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.