> ## Documentation Index
> Fetch the complete documentation index at: https://docs-classic.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Voice Gateway Events

> Voice Gateway includes events related to the call lifecycle, for example, transfer and DTMF input. You can capture event data for analysis in Cognigy Insights.

[Updated in 2025.21](https://docs-classic.cognigy.com/release-notes/2025.21.md)

During the call, the following voice events are recorded in the payload:

| Event | Description |
| - | - |
| [ANSWERING\_MACHINE\_DETECTION](https://docs-classic.cognigy.com/voice-gateway/references/events/ANSWERING_MACHINE_DETECTION.md) | The call was initiated and the answering machine detection process started. |
| [CALL\_COMPLETED](https://docs-classic.cognigy.com/voice-gateway/references/events/CALL_COMPLETED.md) | The call was terminated by the AI Agent or by the user. |
| [CALL\_CREATED](https://docs-classic.cognigy.com/voice-gateway/references/events/CALL_CREATED.md) | The user created a call. |
| [CALL\_FAILED](https://docs-classic.cognigy.com/voice-gateway/references/events/CALL_FAILED.md) | The call was terminated. |
| [CALL\_IN\_PROGRESS](https://docs-classic.cognigy.com/voice-gateway/references/events/CALL_IN_PROGRESS.md) | The call is in progress once the call has been successfully established. This event is only available, when the event is activated in the Voice Gateway Endpoint. |
| [RECOGNIZED\_SPEECH](https://docs-classic.cognigy.com/voice-gateway/references/events/RECOGNIZED_SPEECH.md) | The user's answer was recognized by the AI Agent. |
| [RECOGNIZED\_DTMF](https://docs-classic.cognigy.com/voice-gateway/references/events/RECOGNIZED_DTMF.md) | The DTMF code was recognized by the AI Agent. |
| [TRANSFER\_DIAL\_ERROR](https://docs-classic.cognigy.com/voice-gateway/references/events/TRANSFER_DIAL_ERROR.md) | The call transfer using the `Dial` method failed due to various reasons, like unreachable destination or network issues. |
| [TRANSFER\_DIAL\_SUCCESS](https://docs-classic.cognigy.com/voice-gateway/references/events/TRANSFER_DIAL_SUCCESS.md) | The call transfer using the `Dial` method succeeded with the new phone line established to the destination. |
| [TRANSFER\_REFER\_ERROR](https://docs-classic.cognigy.com/voice-gateway/references/events/TRANSFER_REFER_ERROR.md) | The call transfer using the `Refer` method failed, possibly due to an unavailable or rejecting destination. |
| [TRANSFER\_REFER\_SUCCESS](https://docs-classic.cognigy.com/voice-gateway/references/events/TRANSFER_REFER_SUCCESS.md) | The call transfer using the `Refer` method succeeded, with the call responsibility passed to another destination. |
| [USER\_BUSY](https://docs-classic.cognigy.com/voice-gateway/references/events/USER_BUSY.md) | The user (caller) was busy and unable to answer the call or engage in the desired action. |
| [USER\_INPUT\_TIMEOUT](https://docs-classic.cognigy.com/voice-gateway/references/events/USER_INPUT_TIMEOUT.md) | The AI Agent terminated the call because the user did not respond. |
| [NO\_ANSWER](https://docs-classic.cognigy.com/voice-gateway/references/events/NO_ANSWER.md) | The recipient of the call does not answer. |

You can [collect event data](https://docs-classic.cognigy.com/ai/agents/analyze/collecting-data.md) for further analysis in [Insights](https://docs-classic.cognigy.com/ai/agents/analyze/insights.md). To collect this data, you can access Voice Gateway events in the [Output Transformer](https://docs-classic.cognigy.com/ai/for-developers/transformers/output-transformer.md) and the `input.data.event` Input object, except for the `CALL_COMPLETED` event. You can't access `CALL_COMPLETED` in `input.data.event` since the Input object's content is deleted after `CALL_COMPLETED` occurs. Alternatively, you can register the `CALL_COMPLETED` events by enabling the `CALL_COMPLETED` toggle in the Call Events section of the [Voice Gateway Endpoint](https://docs-classic.cognigy.com/ai/agents/deploy/endpoint-reference/voice-gateway.md) configuration.

The Output Transformer is executed after processing the flow. For example, if you receive the `CALL_COMPLETED` event, write some metrics in the transformer via HTTP request.

You can also use a **Lookup** Node with the [Call Event Status](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/lookup.md) type for reusing these events, streamlining call handling and improving efficiency.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.