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 the call ends normally, for example, when either party hangs up.

Category

Call

Callback Parameters

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

Example

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

More Information