endCall

End a call.

endCall(call, agentStatus) → Promise.<HangupResult>

Returns: HangupResult — Represents a result type for an ended call.

FieldTypeDescription
callPhoneCallThe call to be ended.
agentStatusstringThe rep status to set after ending the call. Valid values correspond to the AGENT_STATUS enum.