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

# failed

Emitted when a call fails to connect or is rejected.

## Category

Call

## Callback Parameters

| Parameter | Type                                                                | Description                            |
| --------- | ------------------------------------------------------------------- | -------------------------------------- |
| `session` | [`CallSession`](/click-to-call/sdk/api-reference/types#callsession) | The failed call session.               |
| `endInfo` | [`CallEndInfo`](/click-to-call/sdk/api-reference/types#callendinfo) | Information about why the call failed. |

## Example

```typescript theme={null}
client.on('failed', (session, endInfo) => {
  console.error('Call failed. Cause:', endInfo.cause);
  console.error('Originator:', endInfo.originator);
  console.error('Description:', endInfo.description);
});
```

## More Information

* [ended](/click-to-call/sdk/event-reference/ended)
* [error](/click-to-call/sdk/event-reference/error)
* [CallEndInfo](/click-to-call/sdk/api-reference/types#callendinfo)
