dj.ufk
11/04/2025, 8:32 AMAI Evy
11/04/2025, 8:32 AMAI Evy
11/04/2025, 8:33 AMcall_ended webhook event, you can check the disconnection_reason field to determine if the call was disconnected by the agent [(1) ]() [(2) ]() .
Specifically, if the disconnection_reason is "agent_hangup", this indicates the AI agent hung up the call [(3) ]() [(2) ]() .
The call_ended webhook payload includes the disconnection_reason field as part of the call object [(1) ]() . Here's what to look for:
json
{
"event": "call_ended",
"call": {
"disconnection_reason": "agent_hangup",
...
}
}
The disconnection_reason field can have various values, but "agent_hangup" specifically means the AI agent terminated the call [(3) ]() [(2) ]() .AI Evy
11/04/2025, 8:33 AMAI Evy
11/04/2025, 8:33 AM