wesleybldc
07/29/2025, 4:28 PMAI Evy
07/29/2025, 4:28 PMAI Evy
07/29/2025, 4:28 PMAI Evy
07/29/2025, 4:28 PMAI Evy
07/29/2025, 4:28 PMwesleybldc
07/29/2025, 4:30 PMAI Evy
07/29/2025, 4:31 PMAI Evy
07/29/2025, 4:31 PMAI Evy
07/29/2025, 4:31 PMAI Evy
07/29/2025, 4:31 PMwesleybldc
07/30/2025, 9:40 AMAI Evy
07/30/2025, 9:40 AMAI Evy
07/30/2025, 9:40 AMX- and are forwarded to your SIP provider on the SIP INVITE . They can be used for:
- Custom routing
- Tagging
- Metadata transmission
- Carrier integration [(2) ]() [(3) ]()
You can use dynamic variables for your custom SIP header values, allowing you to pass information extracted from the call to the receiving party [(1) ]() .
## Important Limitations for Warm Transfers
However, there are significant limitations when using custom SIP headers with warm transfers:
1. **Cold transfer with transferee number limitation**: When using cold transfer with a transferee number, different telephony providers may or may NOT honor the custom SIP headers in the REFER request . For example, Twilio does not honor custom SIP headers in the REFER request, so the SIP headers you set in the transfer call tool will not work for cold transfer with transferee number when using Twilio .
2. **Metadata/dynamic variable transfer issues**: There appears to be a known issue where custom SIP headers and dynamic variables are not properly passed to transferred calls [(4) ]() . This has been reported as a bug that affects the ability to track parent-child call relationships .
#AI Evy
07/30/2025, 9:40 AMcall.custom_sip_headers field and automatically added to your dynamic variables [(1) ]() , but the Discord discussions suggest this functionality may not work reliably for transferred calls [(4) ]() .
Given these limitations, you might need to explore alternative approaches for passing call context to your CRM during warm transfers, such as using webhooks or API calls to update your CRM records separately from the SIP header mechanism.AI Evy
07/30/2025, 9:40 AMAI Evy
07/30/2025, 9:40 AMwesleybldc
07/30/2025, 9:59 AMAI Evy
07/30/2025, 9:59 AMAI Evy
07/30/2025, 9:59 AMcall_started - Triggered when a new call begins
- call_ended - Triggered when a call completes, transfers, or encounters an error
- call_analyzed - Triggered when call analysis is complete
However, the call_ended webhook will be triggered when a call transfers . This webhook includes all fields from the call object except call_analysis .
From the Discord discussion, it appears that the call_analyzed webhook will also be sent when a phone call is transferred [(2) ]() .
So while there isn't a dedicated "call_transferred" webhook event, you can use the call_ended webhook to detect when transfers occur, as transfers are one of the conditions that trigger this event [(1) ]() .AI Evy
07/30/2025, 9:59 AMAI Evy
07/30/2025, 9:59 AMwesleybldc
07/30/2025, 10:02 AMAI Evy
07/30/2025, 10:02 AMAI Evy
07/30/2025, 10:02 AMcall_ended webhook event to detect when a call is transferred [(1) ]() . While there isn't a specific "call_transferred" webhook event, the call_ended webhook is triggered when a call completes, transfers, or encounters an error .
To set up this webhook with Zapier:
1. Create a webhook trigger in Zapier - Set up a "Catch Hook" trigger that will receive the webhook data from Retell AI [(2) ]()
2. Configure the webhook URL in your Retell AI agent - Add the webhook URL provided by Zapier to your agent configuration [(1) ]()
3. Set up the webhook to listen for call_ended events - This event will fire when transfers occur
The webhook payload will contain the event type and call object :
json
{
"event": "call_ended",
"call": {
"call_type": "phone_call",
"from_number": "+12137771234",
"to_number": "+12137771235",
"direction": "inbound",
"call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"call_status": "registered",
"metadata": {},
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
},
"start_timestamp": 1714608475945,
"end_timestamp": 1714608491736,
"disconnection_reason": "user_hangup",
"transcript": "...",
"transcript_object": [ [Object], [Object], [Object], [Object] ],
"transcript_with_tool_calls": [ [Object], [Object], [Object], [Object] ],
"opt_out_sensitive_data_storage": false
}
}
You can then use the disconnection_reason field or other call data to determine if the call ended due to a transfer and trigger appropriate actions in Zapier .AI Evy
07/30/2025, 10:02 AMAI Evy
07/30/2025, 10:02 AMwesleybldc
07/30/2025, 10:06 AMAI Evy
07/30/2025, 10:06 AMAI Evy
07/30/2025, 10:07 AMwebhook_url parameter [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]() [(6) ]() :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.update('16b980523634a6dc504898cda492e939', { agent_name: 'Jarvis' }) ;
console.log(agentResponse.agent_id) ;
[(3) ]()
The webhook_url field is described as: "The webhook for agent to listen to call events. See what events it would get at [webhook doc](/features/webhook) . If set, will binds webhook events for this agent to the specified url, and will ignore the account level webhook for this agent. Set to null to remove webhook url from this agent." [(1) ]() [(2) ]() [(4) ]() [(5) ]() [(6) ]()
Example webhook URL format:
"<https://webhook-url-here%22>AI Evy
07/30/2025, 10:07 AMcall_completed or call_started [(8) ]() . Every call will send all its events .
## Webhook Response Requirements
When setting up webhooks, your endpoint should respond immediately with a 200 OK status [(9) ]() . If you need to perform longer operations, launch them asynchronously after responding to the webhook .
I don't have complete documentation about setting up global webhooks from the Retell dashboard. For more detailed webhook setup instructions, you may want to check the [webhook documentation](/features/webhook) referenced in the API docs or visit [Contact Sales]() or [) for additional support.AI Evy
07/30/2025, 10:07 AMAI Evy
07/30/2025, 10:07 AMwesleybldc
08/12/2025, 11:55 AMAI Evy
08/12/2025, 11:55 AMAI Evy
08/12/2025, 11:56 AMAI Evy
08/12/2025, 11:56 AMcall_ended and call_analyzed .
For detailed setup assistance with HubSpot integration, you can visit [Contact Sales]() or check [) .AI Evy
08/12/2025, 11:56 AMAI Evy
08/12/2025, 11:56 AM