https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to view SIP headers for forwarded calls
# ❓・ai-evy-support
h
@AI Evy how to view SIP headers for forwarded calls?
a
Thanks for tagging me @happy.koala. I'll look through relevant sources and get back to you shortly.
### Answer For forwarded (transferred) calls in Retell AI, custom SIP headers (those starting with X-) are automatically received for inbound calls and are available in the call.custom_sip_headers field. These headers are also added as dynamic variables, accessible within your agent by stripping the X- or x- prefix. There is no special configuration needed to view them for inbound calls—they are exposed directly in the call object [(1) ]() . For forwarded (transferred) calls, you can also set custom SIP headers. However, for cold transfers using SIP REFER, some telephony providers (like Twilio) may not honor custom SIP headers in the REFER request, so whether you can view them after forwarding depends on your provider's support [(1) ]() [(2) ]() . In summary: after a forwarded call arrives as an inbound call, inspect the call.custom_sip_headers field to view the SIP headers if they were received [(1) ]() .
​ To learn more, see the sources I considered: [[1] Set & parse custom SIP headers](https://docs.retellai.com/build/telephony/sip-headers) [[2] Help on Twilio DID questions](https://retell.discourse.group/t/help-on-twilio-did-questions/24) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.