/// <summary> /// Khởi tạo thông tin bắt số cuộc gọi đến từ hệ thống Open Space Siemens /// </summary> /// <param name="serverNameAddress"></param> /// <param name="userNameWindowsLogin"></param> /// <param name="userNamePBXPMĐHExtensionID"></param> /// <param name="fullName"></param> /// <param name="password"></param> public CallCapture_OpenSpaceSiemens(string strLine, string serverNameAddress, string userNameWindowsLogin, string userNamePBXPMĐHExtensionID, string fullName, string password = "") { try { G_GlobalContacts = new GlobalContacts(); G_GlobalContacts.LoadGlobalContacts(); Line = int.Parse(strLine.Split(';')[0]); ProfileOpenSpaceSiemens.UpdateFileProfileOpenSpaceSiemens(userNameWindowsLogin, userNamePBXPMĐHExtensionID, fullName, password); callCapture = new CallCaptureOpenSpaceSiemens(serverNameAddress, userNamePBXPMĐHExtensionID); callCapture.Connect(); if (callCapture.IsConnected) { StatusConnect = userNamePBXPMĐHExtensionID + " Đã kết nối tổng đài." + userNameWindowsLogin; callCapture.StartListening(); callCapture.NewCall += callCapture_NewCall; } else { StatusConnect = " Kết nối tổng đài thất bại"; } //new Taxi.MessageBox.MessageBox().Show(StatusConnect); } catch (Exception ex) { StatusConnect = "Lỗi đã kết nối tổng đài"; Taxi.Business.LogError.WriteLogError("CallCapture_OpenSpaceSiemens:", ex); } }
public CallCapture_OpenSpaceSiemens(string strLine) { G_GlobalContacts = new GlobalContacts(); G_GlobalContacts.LoadGlobalContacts(); Line = int.Parse(strLine.Split(';')[0]); }