endCall
End a call.
endCall(call, agentStatus) → Promise.<HangupResult>
Returns: HangupResult — Represents a result type for an ended call.
| Field | Type | Description |
|---|---|---|
| call | PhoneCall | The call to be ended. |
| agentStatus | string | The rep status to set after ending the call. Valid values correspond to the AGENT_STATUS enum. |