/// <summary> /// Cleans up after a SIP call has completely finished. /// </summary> private void CallFinished() { if (_mediaManager != null) { _mediaManager.EndCall(); _mediaManager = null; } m_uac = null; m_uas = null; CallEnded(); }
/// <summary> /// The button to hang up an outgoing call. /// </summary> private void ByeButton_Click(object sender, System.Windows.RoutedEventArgs e) { if (_activeClient != null) { _activeClient.Hangup(); } else { // If no active client then it must be a loopback test that's ending. _mediaManager.EndCall(); SetStatusText(m_signallingStatus, "Ready"); } ResetToCallStartState(); }
/// <summary> /// Cleans up after a SIP call has completely finished. /// </summary> private void CallFinished() { if (_mediaManager != null) { _mediaManager.EndCall(); _mediaManager = null; } //_cancelCallTokenSource.Cancel(); m_uac = null; m_uas = null; CallEnded(); }