# Class: CallEndEvent

## Constructor

#### new CallEndEvent(reason, reasonProtocol, reasonCause, reasonText)

  Represents information to be used for call end event.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `reason` | AvayaClientServices.Services.Call.CallEndReason | End call reason.
  `reasonProtocol` | string | Pass through end call reason protocol.
  `reasonCause` | number | Pass through end call reason cause.
  `reasonText` | string | Pass through end call reason message.

## Methods

#### getReason() → {AvayaClientServices.Services.Call.CallEndReason}

  Returns the end call reason.

  ##### Returns:

  { AvayaClientServices.Services.Call.CallEndReason }

#### getReasonCause() → {number}

  Returns the end call reason cause.

  ##### Returns:

  { number }

#### getReasonProtocol() → {string}

  Returns the end call reason protocol.

  ##### Returns:

  { string }

#### getReasonText() → {string}

  Returns the end call reason message.

  ##### Returns:

  { string }