hans_70884
10/09/2025, 9:14 AMAI Evy
10/09/2025, 9:14 AMAI Evy
10/09/2025, 9:14 AMcall_status and disconnection_reason fields from the call data [(1) ]() .
For successful connections where the user picked up, look for:
- `call_status`: ended
- `disconnection_reason`: user_hangup or agent_hangup
For calls where the user didn't pick up, you'll see:
- `call_status`: not_connected
- `disconnection_reason`: dial_no_answer, dial_busy, user_declined, or dial_failed
Additionally, you can check the in_voicemail field in the call analysis data [(2) ]() . When "in_voicemail": false , it indicates the call reached a live person rather than voicemail.
Here's the reliable routing logic:
- **User picked up**: call_status is ended AND in_voicemail is false [(2) ]() [(1) ]()
- **User didn't pick up**: call_status is not_connected OR in_voicemail is true
You can access this data through the [get-call API endpoint]() or check it in the Retell Dashboard [(1) ]() .AI Evy
10/09/2025, 9:14 AMAI Evy
10/09/2025, 9:14 AMhans_70884
10/09/2025, 9:15 AMAI Evy
10/09/2025, 9:15 AMAI Evy
10/09/2025, 9:16 AMcall_status of "ended" alone is not sufficient to determine if a user picked up, because calls can end in multiple scenarios including when voicemail is reached [(1) ]() .
The key is to use multiple fields together for accurate routing:
For reliable detection of user pickup:
- `call_status`: ended [(2) ]() [(3) ]()
- `disconnection_reason`: user_hangup or agent_hangup [(2) ]() [(3) ]() [(1) ]()
- `in_voicemail`: false
When voicemail is reached:
- call_status can still be ended [(2) ]() [(3) ]()
- `disconnection_reason`: voicemail_reached [(2) ]() [(3) ]() [(1) ]()
- `in_voicemail`: true
The disconnection_reason field is crucial here. According to the documentation, voicemail_reached is a specific disconnection reason that indicates the call reached voicemail .
So your workflow should check:
1. **User answered**: call_status = "ended" AND disconnection_reason ∈ ["user_hangup", "agent_hangup"] AND in_voicemail = false
2. **Voicemail/No answer**: disconnection_reason ∈ ["voicemail_reached", "dial_no_answer", "dial_busy", "user_declined"] OR in_voicemail = true
This combination provides the most reliable routing logic for your follow-up workflows.AI Evy
10/09/2025, 9:16 AMAI Evy
10/09/2025, 9:16 AMhans_70884
10/09/2025, 10:11 AMAI Evy
10/09/2025, 10:11 AMAI Evy
10/09/2025, 10:11 AMdisconnection_reason field:
## Exact Enum List
The complete list of possible disconnection_reason values is [(1) ]() :
Expected/Normal Disconnections:
- user_hangup - User hangup the call
- agent_hangup - AI agent hangup the call
- call_transfer - AI agent transferred the call
- voicemail_reached - If AI agent is configured with voicemail settings, and voicemail is reached
- inactivity - Call was terminated due to the "end_call_after_silence_ms" setting reached after long inactivity
- max_duration_reached - Call was terminated due to maximum duration reached
Connection Failed (not_connected status) :
- dial_busy - The number dialed is busy
- dial_failed - Dialing failed with no or unknown sip error code
- dial_no_answer - The number dialed did not answer
- invalid_destination - The number dialed is invalid
- telephony_provider_permission_denied - The sip trunk credentials are not authenticated
- telephony_provider_unavailable - The telephony provider is unavailable
- sip_routing_error - The sip routing is going over too many hops or is in a loop
- marked_as_spam - The number dialed is marked as spam
- user_declined - User declined the call
Error Conditions:
- concurrency_limit_reached - Concurrency limit reached
- no_valid_payment - No valid payment registered on file, or service shut down due to bill overdue
- scam_detected - Scam detected for that particular agent
- error_llm_websocket_open - LLM websocket did not open between Retell server and your backend
- error_llm_websocket_lost_connection - LLM websocket connection broke during the call
- error_llm_websocket_runtime - LLM websocket received a closing signal other than 1000 from your server
- `error_llm_websoAI Evy
10/09/2025, 10:11 AMerror_no_audio_received - Has not received audio from Twilio or web frontend for a while after connection has established
- error_asr - Retell's ASR encountered a problem
- error_retell - Unspecified Retell side problem
- error_unknown - Unknown error
- error_user_not_joined - User did not join web call within 30s after calling startWebCall
- registered_call_timeout - Phone call is 30s or more apart from registration
## Field Path
The field path is consistently disconnection_reason across all API endpoints [(2) ]() [(3) ]() [(4) ]() [(5) ]() and webhook events [(6) ]() .
## Inbound vs Outbound
The documentation doesn't indicate any differences in possible disconnection_reason values between inbound and outbound calls [(1) ]() .
## Voicemail Detection
The specific value for voicemail is voicemail_reached . This appears when the AI agent is configured with voicemail settings and voicemail is reached .
## Status Mapping
According to the documentation :
- **`ended` status**: user_hangup, agent_hangup, call_transfer, voicemail_reached, inactivity, max_duration_reached
- **`not_connected` status**: dial_busy, dial_failed, dial_no_answer, invalid_destination, telephony_provider_permission_denied, telephony_provider_unavailable, sip_routing_error, marked_as_spam, user_declined
- **`error` status**: All error conditions starting with error_ plus concurrency_limit_reached, no_valid_payment, scam_detected, `registered_calAI Evy
10/09/2025, 10:12 AMdisconnection_reason in [user_hangup, agent_hangup, call_transfer, inactivity, max_duration_reached]
- **Non-connected calls**: disconnection_reason in [dial_busy, dial_failed, dial_no_answer, invalid_destination, user_declined, marked_as_spam] or any error conditions
- **Voicemail**: disconnection_reason = voicemail_reached (treat as connected but separate category)
## Authoritative Documentation
The definitive reference is the [Debug call disconnection]() page .AI Evy
10/09/2025, 10:12 AMAI Evy
10/09/2025, 10:12 AM