https://retellai.com/?utm_source=discord&utm_medium=seo logo
What is the custom field to determine is a user ha...
# ❓・ai-evy-support
d
@AI Evy What is the custom field to determine is a user has hungup on the AI?
a
Thanks for tagging me @Daniel D. I'll look through relevant sources and get back to you shortly.
### Answer To determine if a user has hung up on the AI, you should check the
disconnection_reason
field in the call object. [(1) ]() When a user hangs up, the
disconnection_reason
will be set to
user_hangup
. The available options for
disconnection_reason
include: -
user_hangup
- The user ended the call -
agent_hangup
- The agent ended the call -
call_transfer
- Call was transferred -
voicemail_reached
- Voicemail was reached -
inactivity
- Call ended due to inactivity -
max_duration_reached
- Maximum call duration was reached - And several other options for various error conditions You can access this field from the call object after the call ends, or subscribe to webhooks like
call_ended
to receive this information.
​ To learn more, see the sources I considered: [[1] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.