private void btnSoftPhoneOK_Click(object sender, RoutedEventArgs e) { try { CnvDialer.Visibility = Visibility.Visible; SoftPhoneScroll.Visibility = Visibility.Collapsed; cnvSoftPhoneTemp.Visibility = Visibility.Collapsed; lblNumber.Text = ""; if (strSoftPhoneSIPNumber != "") { if (blIsVista) { ClientNetP2PRTCVistaChannel.svcRegisterSIPPhone(strSoftPhoneSIPNumber, strSoftPhoneSIPPassword, strSoftPhoneSIPServer); } else { RClient = new RTCClient(strSoftPhoneSIPNumber, strSoftPhoneSIPPassword, strSoftPhoneSIPServer); } lblUserNumber.Content = strSoftPhoneSIPNumber + "@" + strSoftPhoneSIPServer; RClient.entstatus += new RTCClient.delStatus(RClient_entstatus); //**User Registered on new account using sip number=strSoftPhoneSIPNumber, password=strSoftPhoneSIPPassword on server=strSoftPhoneSIPServer //StringBuilder sb = new StringBuilder(); ClsException.WriteToLogFile("Audio module: User Registered on new account using \r\n sip number:" + strSoftPhoneSIPNumber + "\r\nserver:" + strSoftPhoneSIPServer); } } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "btnSoftPhoneOK_Click()", "Audio\\ctlDialer.xaml.cs"); } }
private void Dispose(bool disposing) { //if (!this.disposed) // { // if (disposing) // { try { RClient = null; TimeCounterCollection = null; strNumber = string.Empty; strBtnChClick = string.Empty; intChannelNumber = 0; lstGlobalBuddyList = null; DomainElement = null; ThOpenClinet = null; SNChannel = null; objNetTcpAudio = null; NetP2PChannel.Close(); NetP2PChannel.Dispose(); NetP2PChannel = null; objHttpAudio = null; Httpchannel = null; t1.Stop(); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "Dispose()", "Audio\\ctlDialer.xaml.cs"); } // } // disposed = true; //} // GC.SuppressFinalize(this); }
void bwRegisterSIPUser_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e) { if (blIsVista) { ClientNetP2PRTCVistaChannel.svcRegisterSIPPhone(strSoftPhoneSIPPassword, strSoftPhoneSIPPassword, strSoftPhoneSIPServer); } else { RClient = new RTCClient(strSoftPhoneSIPNumber, strSoftPhoneSIPPassword, strSoftPhoneSIPServer); RClient.entstatus += new RTCClient.delStatus(RClient_entstatus); } lblUserNumber.Content = strSoftPhoneSIPNumber + "@" + strSoftPhoneSIPServer; ClsException.WriteToLogFile("Audio module: creating Supernode channel for SIP Numbers and SIP Conferencees \r\n User Number Is: " + lblUserNumber.Content); }