answerCall static method

Future<void> answerCall()

Answer incoming call

Implementation

static Future<void> answerCall() async {
  try {
    if (_sipHelper == null || _currentCall == null) return;

    debugPrint('SIP: Answering call...');
    _currentCall!.answer(_sipHelper!.buildCallOptions());
    debugPrint('SIP: Call answered');
  } catch (e, stackTrace) {
    _printException('Answer Call', e, stackTrace);
  }
}