Exemplo n.º 1
0
        private async void OnRejectRequested(VoipPhoneCall sender, CallRejectEventArgs args)
        {
            if (_phoneCall is TLPhoneCallRequested requested)
            {
                var req = new TLPhoneDiscardCall {
                    Peer = new TLInputPhoneCall {
                        Id = requested.Id, AccessHash = requested.AccessHash
                    }, Reason = new TLPhoneCallDiscardReasonBusy()
                };

                const string caption  = "phone.discardCall";
                var          response = await SendRequestAsync <TLUpdatesBase>(caption, req);

                if (response.IsSucceeded)
                {
                    if (response.Result is TLUpdates updates)
                    {
                        var update = updates.Updates.FirstOrDefault(x => x is TLUpdatePhoneCall) as TLUpdatePhoneCall;
                        if (update != null)
                        {
                            Handle(update);
                        }
                    }
                }

                _systemCall.NotifyCallEnded();
            }
        }
Exemplo n.º 2
0
 private async void Call_RejectRequested(VoipPhoneCall sender, CallRejectEventArgs args)
 {
     await Hub.Instance.CallChannel.RejectAsync(new IncomingCallReject
     {
         Reason = "Rejected"
     });
 }
 private void Call_RejectRequested(VoipPhoneCall sender, CallRejectEventArgs args)
 {
     Hub.Instance.VoipChannel.Reject(new IncomingCallReject()
     {
         Reason = "Rejected"
     });
 }
Exemplo n.º 4
0
 private void Call_RejectRequested(VoipPhoneCall sender, CallRejectEventArgs args)
 {
     Hub.Instance.VoipChannel.Reject(new IncomingCallReject()
     {
         Reason = "Rejected"
     });
 }
Exemplo n.º 5
0
 void callObj_RejectRequested(VoipPhoneCall sender, CallRejectEventArgs args)
 {
     sender.NotifyCallHeld();
 }
 private static void Call_RejectRequested(VoipPhoneCall sender, CallRejectEventArgs args)
 {
     sender.NotifyCallEnded();
 }
Exemplo n.º 7
0
 private static void Call_RejectRequested(VoipPhoneCall sender, CallRejectEventArgs args)
 {
     sender.NotifyCallEnded();
 }
Exemplo n.º 8
0
 private void Call_RejectRequested(VoipPhoneCall sender, CallRejectEventArgs args)
 {
     Current.EndCall();
 }
Exemplo n.º 9
0
 private void Call_RejectRequested(VoipPhoneCall sender, CallRejectEventArgs args)
 {
     Current.StopAudio();
     sender.NotifyCallEnded();
     Current.VoipCall = null;
 }
 private void Call_RejectRequested(VoipPhoneCall sender, CallRejectEventArgs args)
 {
     Current.StopAudio();
     sender.NotifyCallEnded();
     Current.VoipCall = null;
 }
 void callObj_RejectRequested(VoipPhoneCall sender, CallRejectEventArgs args)
 {
     sender.NotifyCallHeld();
 }