hangup static method

Future<void> hangup(
  1. String accountId
)

Hangup call for a specific account

Implementation

static Future<void> hangup(String accountId) async {
  try {
    final call = _currentCalls[accountId];
    if (call == null) return;

    call.hangup();
    _currentCalls[accountId] = null;
    debugPrint('✅ Call hung up for account: $accountId');
  } catch (e, stackTrace) {
    _printException('Hangup', e, stackTrace);
  }
}