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

End a call

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

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

await signalingHungUp({ invitation })

After a call has connected, a participant uses the Commercial signalingHungUp() operation. Pass the complete OpenIMSignalingInvitationInfo used by the current call; its roomID must match the active media room.

Promise success only means the hangup signaling request completed. The application must also stop local capture, disconnect the media room, and release camera, microphone, and page resources.

Lock the ending transition so local UI actions, remote hangup, timeout, and network errors cannot execute cleanup twice. Cancellation, rejection, timeout, and hangup should converge on one idempotent cleanup flow keyed by roomID. Continue handling onHangUp as documented in call events.