transferAttended method

Future<void> transferAttended(
  1. int toCallId
)

Transfer this call to specified call

Implementation

Future<void> transferAttended(int toCallId) async {
  _logs?.print('Transfer attended callId:$myCallId to callId $toCallId');

  try{
    await SiprixVoipSdk().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!);
  }
}