Browse SDKs · React Native
Platform
SDKsReact NativeEnterprise

Hang up a call

Terminate an active audio or video call and leave the room with the OpenIM React Native SDK.

Copy

After a call is connected or while it is in progress, invoke signalingHungUp() to hang up and exit the call room:

await OpenIMSDK.signalingHungUp({
  opUserID: currentUserID,
  invitation,
});

Parameters

ParameterTypeRequiredDescription
opUserIDstringYesUser ID of the participant terminating the call.
invitationRtcInviteYesComplete call invitation object for the active call. Its roomID must match the current room.

Return value

A resolved Promise confirms that the hang-up signaling request has been processed by the server.

Other participants receive notification via the OnHangUp event. The client should identify the call room using roomID and release local media engine resources and screen state. For full event handling, see Handle call events.