https://retellai.com/?utm_source=discord&utm_medium=seo logo
when I use the api is the call_status the right va...
# ❓・ai-evy-support
u
@AI Evy when I use the api is the call_status the right variable to identify, if the call was connected, landed on mailbox, the line was busy or the caller blocked the call?
a
Thanks for tagging me @.nicomputer. I'll look through relevant sources and get back to you shortly.
### Answer No,
call_status
is not the right variable for identifying those specific call outcomes. [(1) ]() [(2) ]() The
call_status
field indicates the overall state of the call with values like
registered
,
not_connected
,
ongoing
,
ended
, or
error
. For identifying whether a call connected, landed on voicemail, was busy, or was blocked, you should use the
disconnection_reason
field instead. This field provides specific reasons including: -
voicemail_reached
- when the call lands on voicemail -
dial_busy
- when the line is busy -
dial_failed
- when the call fails to connect -
dial_no_answer
- when there's no answer -
marked_as_spam
- when the call is marked as spam -
user_declined
- when the user declines the call -
user_hangup
or
agent_hangup
- for successful connections that ended The
disconnection_reason
field is available after the call ends and gives you the precise outcome you're looking for.
​ To learn more, see the sources I considered: [[1] Get Call](https://docs.retellai.com/api-references/get-call) [[2] List Calls](https://docs.retellai.com/api-references/list-calls) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
can you explain the different call_status states and when they occur?
@AI Evy : can you identify which of the Available options for disconnection_reason make sense to retry in 5min and which ones don´t: user_hangup, agent_hangup, call_transfer, voicemail_reached, inactivity, max_duration_reached, concurrency_limit_reached, no_valid_payment, scam_detected, 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_llm_websocket_open, error_llm_websocket_lost_connection, error_llm_websocket_runtime, error_llm_websocket_corrupt_payload, error_no_audio_received, error_asr, error_retell, error_unknown, error_user_not_joined, registered_call_timeout
a
Thanks for the follow-up, @.nicomputer. I'll get back to you soon.
### Answer Based on the disconnection reasons documented for Retell AI, here's which ones make sense to retry in 5 minutes and which don't: [(1) ]() Worth Retrying in 5 Minutes: -
dial_busy
- The number was busy, may be available soon -
dial_no_answer
- No answer, person might be available later -
telephony_provider_unavailable
- Provider issue may be temporary [(2) ]() [(1) ]() -
concurrency_limit_reached
- Add exponential backoff and retry [(1) ]() -
error_llm_websocket_lost_connection
- Connection issue may be resolved -
error_retell
- Unspecified Retell-side problem, may be temporary -
error_unknown
- Unknown error, worth one retry Do NOT Retry: -
user_hangup
- User intentionally ended call -
agent_hangup
- AI agent ended call as expected -
call_transfer
- Call was successfully transferred -
voicemail_reached
- Voicemail was reached (expected behavior) -
inactivity
- Call ended due to silence timeout -
max_duration_reached
- Call hit maximum duration limit -
no_valid_payment
- Payment issue on your account -
scam_detected
- Call flagged as scam -
invalid_destination
- Phone number is invalid [(2) ]() [(1) ]() -
telephony_provider_permission_denied
- SIP trunk authentication failed -
sip_routing_error
- SIP routing loop or misconfiguration -
marked_as_spam
- Number marked as spam by carriers -
user_declined
- User explicitly declined the call -
error_llm_websocket_open
- LLM websocket failed to open (likely configuration issue) [(1) ](
retellai.com/reliability/debug-call-disconnect) -
error_user_not_joined
- User didn't join web call within 30s -
registered_call_timeout
- Call was 30s+ apart from registration Conditional/Investigate First: -
dial_failed
- Could indicate spam marking or other issues; investigate before retrying [(2) ]() [(1) ]() -
error_llm_websocket_runtime
- Check your server logs first [(1) ]() -
error_llm_websocket_corrupt_payload
- Fix payload format before retrying -
error_no_audio_received
- Connection issue, investigate cause -
error_asr
- ASR problem, may need Retell support For
concurrency_limit_reached
, the documentation specifically recommends adding exponential backoff or considering an enterprise plan.
​ To learn more, see the sources I considered: [[1] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) [[2] Debug outbound connection issues](https://docs.retellai.com/reliability/debug-outbound-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.