Ejemplo n.º 1
0
        /// <summary>
        /// Stops the current call if any.
        /// </summary>
        public void EndCurrentCall()
        {
            LinphoneCall call = LinphoneCore.CurrentCall;

            if (call != null)
            {
                LinphoneCore.TerminateCall(call);
            }
            else
            {
                foreach (LinphoneCall lCall in LinphoneCore.Calls)
                {
                    if (lCall.State == LinphoneCallState.Paused)
                    {
                        LinphoneCore.TerminateCall(lCall);
                    }
                }
            }
        }
Ejemplo n.º 2
0
 private void EndCall()
 {
     lc.TerminateCall(lc.CurrentCall);
     //this.btnCall.Text = "Call";
 }