Cancel a call invitation
OpenIM uni-app / uni-app x SDK guide for Cancel a call invitation.
import { signalingCancel } from '@/uni_modules/unix-openim-sdk'
await signalingCancel({ invitation })signalingCancel() is Commercial and is called by the inviter while the invitation is still unanswered. Pass the complete original OpenIMSignalingInvitationInfo; a newly constructed object containing only roomID is not sufficient.
Cancellation and hangup have different meanings: cancel an unanswered invitation, and hang up an accepted or connecting session.
Promise success means the cancel signaling request completed. The app must also leave its local waiting state and release media resources that were prepared but not used. The remote side updates through onInvitationCancelled. Prevent duplicate actions and resolve cancel/accept races from call events.
Was this page helpful?