Browse SDKs · uni-app / uni-app x
Platform
SDKsuni-app / uni-app xEnterprise

Reject a call

Decline an unanswered incoming call invitation.

Copy

When a user declines an incoming call, pass the complete OpenIMSignalingInvitationInfo object to signalingReject().

Parameters

ParameterTypeRequiredDescription
invitationOpenIMSignalingInvitationInfoYesThe complete invitation object received via signaling events or recovered from queries.

Do not attempt to construct a simplified invitation using only roomID or the caller ID.

Code example

import { signalingReject } from '@/uni_modules/unix-openim-sdk'

await signalingReject({ invitation })

Return value

The Promise resolves with void upon successful submission of the rejection signal.

State changes after the call

A resolved Promise confirms that the rejection request was accepted by OpenIMServer. The callee client should immediately tear down the incoming call UI, remove the pending invitation state indexed by roomID, and release any reserved audio/video hardware resources. Promise resolution does not guarantee that the caller has already processed the event; for caller-side signaling synchronization, see Handle call events.