hangUp method

Future<int> hangUp({
  1. required int sessionId,
  2. bool reportToConnectionService = true,
})

Terminates an active call.

Parameters:

  • sessionId: The session ID of the call to terminate

Returns 0 on success, negative error code on failure.

reportToConnectionService: when false, hangs up the SIP session directly without touching the system call UI (CallKit / ConnectionService) or the shared audio session. Pass false to drop a single conference leg while the rest of the conference keeps running.

Implementation

Future<int> hangUp({
  required int sessionId,
  bool reportToConnectionService = true,
}) async {
  throw UnimplementedError('hangUp has not been implemented.');
}