accept method
Accept (answer) this call
Implementation
Future<void> accept([bool withVideo = true]) async {
_logs?.print('Accepting callId:$myCallId withVideo:$withVideo');
try {
await PjsipConnectFlutter().accept(myCallId, withVideo);
_state = CallState.accepting;
notifyListeners();
} on PlatformException catch (err) {
_logs?.print(
'Can\'t accept callId:$myCallId Err: ${err.code} ${err.message}',
);
return Future.error((err.message == null) ? err.code : err.message!);
}
}