reject method
Reject this call
Implementation
Future<void> reject() async {
_logs?.print('Rejecting callId:$myCallId');
try {
await PjsipConnectFlutter().reject(myCallId, 486); //Send '486 Busy now'
_state = CallState.rejecting;
notifyListeners();
} on PlatformException catch (err) {
_logs?.print(
'Can\'t reject callId:$myCallId Err: ${err.code} ${err.message}',
);
return Future.error((err.message == null) ? err.code : err.message!);
}
}