Beispiel #1
0
 private void hangupButton_Click(object sender, EventArgs e)
 {
     if (call != null)
     {
         call.HangUp();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Hangs up the current call.
 /// </summary>
 public void HangUp()
 {
     if (call != null)
     {
         call.HangUp();
         call = null;
     }
 }
Beispiel #3
0
 private void CheckAndComplete()
 {
     if (_sendDataComplete && _sendToneComplete)
     {
         _log.Info("Hanging up");
         _call.HangUp();
     }
 }
Beispiel #4
0
 /// <summary>
 /// Hangs up the current call.
 /// </summary>
 public void HangUp()
 {
     if (_call != null)
     {
         _call.HangUp();
         _call = null;
     }
 }
 private void ZakonczRozmowebutton_Click(object sender, RoutedEventArgs e)
 {
     if (call != null)
     {
         CloseDevices();
         call.HangUp();
         call = null;
     }
 }
		/// <summary>
		/// In case a call is in progress, it breaks the call.
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void buttonHangUp_Click(object sender, EventArgs e)
		{
			if (call != null)
			{
				if (inComingCall && call.CallState == CallState.Ringing)
					call.Reject();
				else
					call.HangUp();
				inComingCall = false;
				call = null;
			}
			labelDialingNumber.Text = string.Empty;
		}
Beispiel #7
0
 public static void HangUp()
 {
     if (call != null)
     {
         call.HangUp();
         call.PhoneLine.Dispose();
         call.CallStateChanged += call_CallStateChanged;
         call = null;
     }
     else
     {
         Console.WriteLine("call = null");
     }
 }
Beispiel #8
0
 private void btnCancelarTransferirLlamada_Click(object sender, EventArgs e)
 {
     if (_call2 != null)
     {
         _call2.HangUp();
         _call2 = null;
         _mediaSender.AttachToCall(_call);
         _mediaReceiver.AttachToCall(_call);
         _call.ToggleHold();
         InvokeGUIThread(() => { btnEnviarTransf.Visible = false; btnTransfer.Visible = true; });
     }
     pnlTransferirLlamada.Visible = false;
     txtNoTransferir.Text         = string.Empty;
 }
Beispiel #9
0
        /// <summary>
        /// 挂断
        /// </summary>
        public void HangUp()
        {
            if (call != null)
            {
                if (call.IsIncoming && call.CallState.IsRinging())
                {
                    call.Reject();
                }
                else
                {
                    call.HangUp();
                }

                call = null;
            }
        }
Beispiel #10
0
 private void lnkHangUp_Click(object sender, EventArgs e)
 {
     if (_call != null)
     {
         if (_incomingCall && _call.CallState == CallState.Ringing)
         {
             _call.Reject();
         }
         else
         {
             _call.HangUp();
         }
         _incomingCall = false;
         _call         = null;
     }
     txtDisplay.Text = string.Empty;
 }
 /// <summary>
 /// In case a call is in progress, it breaks the call.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnBitir_Click(object sender, EventArgs e)
 {
     if (call != null)
     {
         if (inComingCall && call.CallState == CallState.Ringing)
         {
             call.Reject();
         }
         else
         {
             call.HangUp();
         }
         inComingCall = false;
         call         = null;
     }
     labelDialingNumber.Text = string.Empty;
     this.Dispose();
 }
Beispiel #12
0
 /// <summary>
 /// Colgar llamada ahora. Estático
 /// </summary>
 static void mediaHangUpNow()
 {
     if (call != null)
     {
         call.HangUp();
         log.Info("Colgando llamada!");
     }
     else
     {
         log.Info("Llamada no inicializada!");
     }
     getCallsRunningUtils();
     if (callsRunningUtils.idsList.Contains(jobDataCommonStatic.idJob))
     {
         callsRunningUtils.idsList.Remove(jobDataCommonStatic.idJob);
         setCallsRunningUtils();
     }
 }
Beispiel #13
0
        private void Hanguping()
        {
            if (_call != null)
            {
                if (_inComingCall && _call.CallState == CallState.Ringing)
                {
                    _call.Reject();
                    InvokeGUIThread(() => { lb_Log.Items.Add("Call rejected."); });
                }
                else
                {
                    _call.HangUp();
                    _inComingCall = false;
                    InvokeGUIThread(() => { lb_Log.Items.Add("Call hanged up."); });
                }

                _call = null;
            }
        }
Beispiel #14
0
        public void Hang_up()
        {
            if (_call != null)
            {
                if (_inComingCall && _call.CallState == CallState.Ringing)
                {
                    _call.Reject();
                    _message.Add("Call Rejected");
                }
                else
                {
                    _call.HangUp();

                    _message.Add("Call hanged up");
                }
                _inComingCall = false;
                _call         = null;
            }
        }
Beispiel #15
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (PhoneCall != null)
            {
                if (InComingCall && PhoneCall.CallState == CallState.Ringing)
                {
                    PhoneCall.Reject();
                    InvokeGUIThread(mymsg = "Call rejected!");
                }
                else
                {
                    PhoneCall.HangUp();
                    InComingCall          = false;
                    InvokeGUIThread(mymsg = "Call hanged up");
                }

                PhoneCall = null;
            }
        }
Beispiel #16
0
        private void btn_HangUp_Click(object sender, EventArgs e)
        {
            if (call != null)
            {
                if (inComingCall && call.CallState == CallState.Ringing)
                {
                    call.Reject();
                    InvokeGUIThread(() => { lb_Log.Items.Add("Call rejected."); });
                }
                else
                {
                    call.HangUp();
                    inComingCall = false;
                    InvokeGUIThread(() => { lb_Log.Items.Add("Call hanged up."); });
                }

                call = null;
            }

            tb_Display.Text = string.Empty;
        }
Beispiel #17
0
        public void Hang_Up()
        {
            if (_call != null)
            {
                if (_inComingCall && _call.CallState == CallState.Ringing)
                {
                    _call.Reject();
                    InvokeGUIThread(() => { lb_Log.Items.Add("Call rejected."); });
                }
                else
                {
                    _call.HangUp();
                    _inComingCall = false;
                    InvokeGUIThread(() => { lb_Log.Items.Add("Call hanged up."); });
                }

                _call = null;
            }

            //txtNumber.Text = string.Empty;
        }
 public void HangUp()
 {
     call.HangUp();
 }
Beispiel #19
0
 /// <summary>
 /// Hangs up the current call.
 /// </summary>
 public void HangUp()
 {
     _call?.Reject();
     _call?.HangUp();
     _call = null;
 }