hangup static method

Future<void> hangup()

Hangup current call

Implementation

static Future<void> hangup() async {
  try {
    await VoipService.endAllCalls();
    if (SipService.isInCall) {
      await SipService.hangup();
    }
    debugPrint('✅ Call hung up');
  } catch (e) {
    debugPrint('❌ Hangup error: $e');
  }
}