Close() public method

Called when the media channels are no longer required, such as when the VoIP call using it has terminated, and all resources can be shutdown and closed.
public Close ( ) : void
return void
Beispiel #1
0
        /// <summary>
        /// Application closing, shutdown the SIP, Google Voice and STUN clients.
        /// </summary>
        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            _mediaManager.Close();
            _sipClient.Shutdown();

            if (_stunClient != null)
            {
                _stunClient.Stop();
            }
        }
        /// <summary>
        /// Application closing, shutdown the SIP, Google Voice and STUN clients.
        /// </summary>
        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            foreach (var sipClient in _sipClients)
            {
                sipClient.Shutdown();
            }

            _mediaManager.Close();
            _sipTransportManager.Shutdown();

            if (_stunClient != null)
            {
                _stunClient.Stop();
            }
        }