rejectCall

abstract suspend fun rejectCall(callId: CallId)

Rejects the call with the specified callId. The call should be in the ringing state.

The state of the call will change to CallState.DISCONNECTED and Call.disconnectedCause will reflect the reason for disconnection to be DisconnectCause.REJECTED. This will be reflected through updates to the currentCalls property.

Calling this with an unknown callId or a call that is not in the CallState.RINGING state will be ignored.

Parameters

callId

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