|
|
@@ -58,14 +58,18 @@ bool CVideoOffice::findVideoExten(uint32_t & a_VideoExtId, std::string & a_Video
|
|
58
|
58
|
return false;
|
|
59
|
59
|
}
|
|
60
|
60
|
|
|
61
|
|
-bool CVideoOffice::recoverVideoExten(uint32_t a_VideoExtId)
|
|
|
61
|
+bool CVideoOffice::recoverVideoExten(uint32_t a_VideoExtId, bool bIsRm)
|
|
62
|
62
|
{
|
|
63
|
63
|
std::unique_lock<std::mutex> lock(mut);
|
|
64
|
64
|
auto it = m_VideoExtens.find(a_VideoExtId);
|
|
65
|
65
|
if (it != m_VideoExtens.end())
|
|
66
|
66
|
{
|
|
67
|
67
|
it->second->isUsed() = false;
|
|
68
|
|
- ILogger::getInstance().log(LOG_CLASS_BUSI, LOG_LEVEL_NORMAL, _T("{CVideoOffice}: 释放视频分机号[%lu]状态[%s]"), a_VideoExtId, it->second->isUsed() ? "不可用" : "可用");
|
|
|
68
|
+ if (!bIsRm)
|
|
|
69
|
+ ILogger::getInstance().log(LOG_CLASS_BUSI, LOG_LEVEL_NORMAL, _T("{CVideoOffice}: 释放视频分机号[%lu]状态[%s]"), a_VideoExtId, it->second->isUsed() ? "不可用" : "可用");
|
|
|
70
|
+ else
|
|
|
71
|
+ ILogger::getInstance().log(LOG_CLASS_BUSI, LOG_LEVEL_NORMAL, _T("{CVideoOffice}: 释放视频分机号[%lu]状态[%s],话机取消注册"), a_VideoExtId, it->second->isUsed() ? "不可用" : "可用");
|
|
|
72
|
+
|
|
69
|
73
|
}
|
|
70
|
74
|
|
|
71
|
75
|
{
|