Function: endCall()
ts
function endCall(id): Promise<void>;Defined in: Calls.ts:601
Ends an active call.
Requests the system to end the call. The system will emit a CallEndedEvent to notify that the call has ended. Clean up your media connection when you receive this event.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The call session ID to end. |
Returns
Promise<void>
See
- addCallEndedListener — confirms the call ended.
- reportCallEnded — call this instead when the remote party hung up (a server-side signal), so the OS records the right reason.