Skip to main content

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.

Emitted when a call fails to connect or is rejected.

Category

Call

Callback Parameters

ParameterTypeDescription
sessionCallSessionThe failed call session.
endInfoCallEndInfoInformation about why the call failed.

Example

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

More Information