/// <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); } } } }
private void EndCall() { lc.TerminateCall(lc.CurrentCall); //this.btnCall.Text = "Call"; }