endCall

abstract suspend fun endCall(callId: CallId)

Ends the call with the specified callId.

Typically this will change the state of the call to CallState.DISCONNECTING after which it will go to CallState.DISCONNECTED and Call.disconnectedCause will reflect the reason it was disconnected to be DisconnectCause.LOCAL.

After this call the state of the call will be guaranteed to imminently end up in the CallState.DISCONNECTED state and Call.disconnectedCause will reflect the actual reason it was disconnected (e.g. when called in the CallState.DISCONNECTING state).

If the callId is unknown this call has no effect.

Parameters

callId

ID of one of the ongoing calls from the currentCalls property.