baiwenju лет назад: 4
Родитель
Сommit
c4f8adab6a

+ 14 - 0
MidWare_WinStandard1.0-zmd/ACD/VideoOffice.cpp

@@ -49,6 +49,7 @@ bool CVideoOffice::findVideoExten(uint32_t & a_VideoExtId, std::string & a_Video
49 49
 			a_VideoExtId = it->second->id();
50 50
 			a_VideoExtPwd = it->second->pwd();
51 51
 			std::cout << "{CVideoOffice}" << a_VideoExtId << "-" << a_VideoExtPwd << std::endl;
52
+			ILogger::getInstance().log(LOG_CLASS_BUSI, LOG_LEVEL_NORMAL, _T("{CVideoOffice}: 获取视频分机号[%lu]密码[%s]"), a_VideoExtId, a_VideoExtPwd.c_str());
52 53
 			return true;
53 54
 		}
54 55
 		++it;
@@ -64,6 +65,19 @@ bool CVideoOffice::recoverVideoExten(uint32_t a_VideoExtId)
64 65
 	if (it != m_VideoExtens.end())
65 66
 	{
66 67
 		it->second->isUsed() = false;
68
+		ILogger::getInstance().log(LOG_CLASS_BUSI, LOG_LEVEL_NORMAL, _T("{CVideoOffice}: 释放视频分机号[%lu]状态[%s]"), a_VideoExtId, it->second->isUsed() ? "不可用" : "可用");
69
+	}
70
+	
71
+	{
72
+		CString str,str1;
73
+		auto iter = m_VideoExtens.begin();
74
+		while (iter != m_VideoExtens.end())
75
+		{
76
+			str1.Format("分机[%lu]状态[%s]\n",iter->second->id(),iter->second->isUsed()?"已被用":"可用");
77
+			str += str1;
78
+			++iter;
79
+		}
80
+		ILogger::getInstance().log(LOG_CLASS_BUSI, LOG_LEVEL_NORMAL, _T("{CVideoOffice}: 视频分机信息\n[%s]"),str.GetBuffer(0));
67 81
 	}
68 82
 	return true;
69 83
 }

+ 3 - 0
MidWare_WinStandard1.0-zmd/CTI/TaskAgentThreeTalk.cpp

@@ -30,6 +30,9 @@ BOOL CTaskAgentThreeTalk::DoTask()
30 30
 
31 31
     m_pCurrLine->opType() = PDU_CMD_AGENT_THREETALK;
32 32
 
33
+	if (m_CurrCmd.GetDataString(4).IsEmpty() || m_CurrCmd.GetDataString(4) == "")
34
+		m_CurrCmd.SetDataString(4, m_pCurrLine->callerNum());
35
+
33 36
     // 向底层设备发送三方通话
34 37
     LineOpParam pLineOpParam;
35 38
     memset( &pLineOpParam, 0, sizeof( pLineOpParam ) );

+ 5 - 0
MidWare_WinStandard1.0-zmd/CTI/ViewResBase.cpp

@@ -101,6 +101,11 @@ bool CViewResBase::create( CDisplayWnd* pWnd, UINT PanId, UINT ListId )
101 101
 		TRACE0("创建设备资源控件失败\n");
102 102
 		return false;
103 103
 	}
104
+	//禁用clistctrl自动排序,中继资源视图
105
+	if (IDC_LIST_TRUNK == ListId)
106
+	{
107
+		ModifyStyle(LVS_SORTASCENDING | LVS_SORTDESCENDING, true);
108
+	}
104 109
 	SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, 0, LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES);
105 110
 
106 111
 	InsertColumn(COLUMN_RES_ID, _T("资源ID"), LVCFMT_LEFT, 130);