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(); } }
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" }); }
void callObj_RejectRequested(VoipPhoneCall sender, CallRejectEventArgs args) { sender.NotifyCallHeld(); }
private static void Call_RejectRequested(VoipPhoneCall sender, CallRejectEventArgs args) { sender.NotifyCallEnded(); }
private void Call_RejectRequested(VoipPhoneCall sender, CallRejectEventArgs args) { Current.EndCall(); }
private void Call_RejectRequested(VoipPhoneCall sender, CallRejectEventArgs args) { Current.StopAudio(); sender.NotifyCallEnded(); Current.VoipCall = null; }