Skip to content

Function: failIncomingCallConnected()

ts
function failIncomingCallConnected(id, requestId): Promise<void>;

Defined in: Calls.ts:551

Fails a pending incoming call connection request.

Call this when the answer flow fails before media is connected (e.g., API error). On iOS, causes CXAnswerCallAction to fail, which triggers CallKit to end the call via CXEndCallAction. On Android, ends the call via reportCallEnded which also cancels any pending fulfill request.

Parameters

ParameterTypeDescription
idstringThe call session ID.
requestIdstringThe request ID from the CallAnsweredEvent.

Returns

Promise<void>

See

Released under the MIT License.