Browse SDKs · uni-app / uni-app x
SDKsuni-appEnterprise

Reject a call

OpenIM uni-app / uni-app x SDK guide for Reject a call.

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

await signalingReject({ invitation })

When the user declines an incoming call, pass the complete received OpenIMSignalingInvitationInfo to the Commercial signalingReject() operation. Do not reconstruct the invitation or alter its roomID.

Promise success only means OpenIMServer completed the reject request. The local incoming-call UI can then close, while the inviter updates through onInviteeRejected. Remote and multi-device events may race with the local action and must be handled idempotently. See call events for the complete lifecycle.