# void forceHangUpVoip([string roomId])

Force an end to the call

# parameter

# String roomId

Optional. 2.3.2 Start support.

  • When not incoming, hang up the call that is currently being made;
  • When incoming, hang up the currently active call only if the current call roomId is the same as incoming. (Recommendation)

# Return value

nothing

# sample code

const wmpfVoip = requirePlugin('wmpf-voip').default

wmpfVoip.forceHangUpVoip('some group id')