Example #1
0
        public override async Task Call(string number, bool hasVideo = false)
        {
            if (!_inited)
            {
                return;
            }
            _number = number;
            SetAudioDevices();
            var source = new CancellationTokenSource(10000);
            await Task.Run(() =>
            {
                _sessionId = _sdkLib.call(number, true, false);
            }, source.Token);

            if (_sessionId <= 0)
            {
                return;
            }
            _sdkLib.muteMicrophone(false);
            IsBusy = true;
            OnTrying(number);
        }