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
| Parameter | Type | Description |
|---|---|---|
id | string | The call session ID. |
requestId | string | The request ID from the CallAnsweredEvent. |
Returns
Promise<void>
See
- fulfillIncomingCallConnected — call this on the success path.
- addCallAnsweredListener — the event you typically respond to before calling either fulfiller.