Vako-SV
05/28/2026, 3:01 PMAI Evy
05/28/2026, 3:01 PMAI Evy
05/28/2026, 3:01 PMsip.h.x-, along with common SIP headers like Diversion, History-Info, User-To-User, and P-Asserted-Identity, and converts each into a dynamic variable by stripping the sip.h. prefix.
For example, sip.h.diversion: <sip:2000@192.168.254.254>;privacy=off;reason=no-answer;counter=1;screen=no becomes diversion: <sip:2000@192.168.254.254>;privacy=off;reason=no-answer;counter=1;screen=no as a dynamic variable.
These extracted headers are available as dynamic variables that you can use within your agent configuration and access through webhooks.AI Evy
05/28/2026, 3:01 PMAI Evy
05/28/2026, 3:01 PMVako-SV
05/28/2026, 3:04 PMdiversion appears in retell_llm_dynamic_variables during call_started or the inbound call webhook?AI Evy
05/28/2026, 3:04 PMAI Evy
05/28/2026, 3:04 PMretell_llm_dynamic_variables in their structure [(1) ]() [(2) ]() [(3) ]() . The webhook payload contains the call details with this field available in events like call_started, call_ended, and call_analyzed [(1) ]() [(4) ]() .
However, the specific documentation about Diversion header extraction and how SIP headers are automatically converted into dynamic variables for Twilio SIP trunk → LiveKit → Retell configurations is not present in the sources I have access to.
What I can confirm from the documentation:
Dynamic variables in webhooks:
- The retell_llm_dynamic_variables object appears in webhook payloads [(1) ]() [(2) ]() [(3) ]()
- Dynamic variables can be set when creating calls via the API [(2) ]() [(3) ]()
- Variables can also be collected during the call and appear in collected_dynamic_variables
Custom SIP headers:
- You can send custom SIP headers when creating outbound calls using the custom_sip_headers parameter [(2) ]()
- These appear in the call object as custom_sip_headers [(2) ]() [(3) ]()
I don't have documAI Evy
05/28/2026, 3:04 PMretell_llm_dynamic_variables for your specific setup. I'd recommend checking:
1. [Documentation]() for SIP header handling specifics
2. [Hire certified Retell partner]() for implementation assistance
Would you like a general answer based on my knowledge instead?AI Evy
05/28/2026, 3:05 PMAI Evy
05/28/2026, 3:05 PM