transferAttended method
Transfer this call to specified call
Implementation
Future<void> transferAttended(int toCallId) async {
_logs?.print('Transfer attended callId:$myCallId to callId $toCallId');
try {
await PjsipConnectFlutter().transferAttended(myCallId, toCallId);
_state = CallState.transferring;
notifyListeners();
} on PlatformException catch (err) {
_logs?.print(
'Can\'t transfer callId:$myCallId Err: ${err.code} ${err.message}',
);
return Future.error((err.message == null) ? err.code : err.message!);
}
}