switchToCall method
Switch to call with specified id (configure mixer to send sound from mic to this call and play received sound of this call to speaker)
Implementation
Future<void> switchToCall(int callId) async{
_logs?.print('Switching mixer to call $callId');
try {
await SiprixVoipSdk().switchToCall(callId);
_confModeStarted = false;
//Value '_switchedCallId' will set in the callback 'onSwitched'
} on PlatformException catch (err) {
_logs?.print('Can\'t switch to call. Err: ${err.code} ${err.message}');
return Future.error((err.message==null) ? err.code : err.message!);
}
}