|
|
@@ -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
|
}
|