|
@@ -185,7 +185,7 @@ DeviceTypeEnum CITCtrlEntity::RvcGetDeviceType()
|
|
|
}
|
|
|
|
|
|
if (eType >= 0 && eType < sizeof(Device_Type_Table) / sizeof(char*)) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("device type is %s.", Device_Type_Table[eType]);
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("device type is %s.", Device_Type_Table[eType]);
|
|
|
}
|
|
|
|
|
|
return eType;
|
|
@@ -220,9 +220,7 @@ ErrorCodeEnum CITCtrlEntity::__OnStart(ErrorCodeEnum preOperationError)
|
|
|
}
|
|
|
|
|
|
int i = 0;
|
|
|
- m_arrListener.Init(8);
|
|
|
- pFunc->SubscribeLog(m_arrListener[i++], this, Log_Event, Severity_None, Error_IgnoreAll, 0x40100002, "IEBrowser");
|
|
|
- pFunc->SubscribeLog(m_arrListener[i++], this, Log_Event, Severity_None, Error_IgnoreAll, 0x40100003, "IEBrowser");
|
|
|
+ m_arrListener.Init(6);
|
|
|
pFunc->SubscribeLog(m_arrListener[i++], this, Log_Event, Severity_None, Error_IgnoreAll, LOG_EVT_MOD_ASSISCHAN_STARTED_SUCCESS,NULL,false);
|
|
|
pFunc->SubscribeLog(m_arrListener[i++], this, Log_Event, Severity_None, Error_IgnoreAll, LOG_EVT_MOD_LOCALPLAYER_STARTED_SUCCESS, NULL, false);
|
|
|
pFunc->SubscribeLog(m_arrListener[i++], this, Log_Event, Severity_None, Error_IgnoreAll, LOG_EVT_MOD_SALESRECORDER_STARTED_SUCCESS, NULL, false);
|
|
@@ -999,21 +997,6 @@ void CITCtrlEntity::OnLog(const CAutoArray<CUUID> &SubIDs, const CUUID nLogID,co
|
|
|
const CAutoArray<DWORD> &Param, const char *pszEntityName, const char *pszModuleName,const char *pszMessage, const linkContext &pLinkInfo)
|
|
|
{
|
|
|
switch (dwUserCode) {
|
|
|
- case 0x40100002: // AgentInputState_Writing
|
|
|
- {
|
|
|
- AgentInputState evt;
|
|
|
- evt.state = eAgentInputState_Writing;
|
|
|
- SpSendBroadcast(GetFunction(), SP_MSG_OF(AgentInputState), SP_MSG_SIG_OF(AgentInputState), evt);
|
|
|
- }
|
|
|
- break;
|
|
|
- case 0x40100003: // AgentInputState_Idle
|
|
|
- {
|
|
|
- AgentInputState evt;
|
|
|
- evt.state = eAgentInputState_Idle;
|
|
|
- SpSendBroadcast(GetFunction(), SP_MSG_OF(AgentInputState), SP_MSG_SIG_OF(AgentInputState), evt);
|
|
|
- }
|
|
|
- break;
|
|
|
-
|
|
|
case LOG_EVT_MOD_ASSISCHAN_STARTED_SUCCESS:
|
|
|
{
|
|
|
Sleep(310);
|
|
@@ -1479,11 +1462,6 @@ ErrorCodeEnum CITCtrlEntity::ConnectToLocalPlayer(bool blogevt)
|
|
|
}
|
|
|
return Error_InvalidState;
|
|
|
}
|
|
|
- else {
|
|
|
- if (blogevt) {
|
|
|
- DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("Connect to LocalPlayClient Succeed!");
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
return Error_Succeed;
|
|
@@ -1541,11 +1519,6 @@ ErrorCodeEnum CITCtrlEntity::ConnectToSalesRecord(bool blogevt)
|
|
|
}
|
|
|
return Error_InvalidState;
|
|
|
}
|
|
|
- else {
|
|
|
- if (blogevt) {
|
|
|
- DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("Connect to Sales Record Client Succeed!");
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
return Error_Succeed;
|
|
@@ -1592,11 +1565,6 @@ ErrorCodeEnum CITCtrlEntity::ConnectToSipPhone(bool blogevt)
|
|
|
}
|
|
|
return Error_InvalidState;
|
|
|
}
|
|
|
- else {
|
|
|
- if (blogevt) {
|
|
|
- DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("Connect to Sipphone Client Succeed!");
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
return Error_Succeed;
|
|
@@ -1640,11 +1608,6 @@ ErrorCodeEnum CITCtrlEntity::ConnectMediaCtr(bool blogevt)
|
|
|
}
|
|
|
return Error_InvalidState;
|
|
|
}
|
|
|
- else {
|
|
|
- if (blogevt) {
|
|
|
- DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("Connect to Mediacontroller Client Succeed!");
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
return Error_Succeed;
|