SDKsAndroidEnterprise
Hang up a call
Hang up an established call with the Android SDK.
After a call is established, any participant can call signalingHungUp() to hang up. Pass the complete SignalingInfo saved for the active call; its roomID must match the active media room.
OpenIMClient.getInstance().signalingManager.signalingHungUp(
new OnBase<String>() {
@Override
public void onSuccess(String result) {
// The signaling request completed.
}
@Override
public void onError(int code, String error) {
// code and error describe the failure.
}
},
signalingInfo
);The success callback only confirms that the hang-up signaling request completed; it does not release local resources automatically. Close the call UI, stop local capture, disconnect from the media room, and release the camera and microphone.
Was this page helpful?