Parcourir la source

Z991239-3451 #comment 增加呼叫类型告警信息

80274480 il y a 3 ans
Parent
commit
136d45c247
2 fichiers modifiés avec 7 ajouts et 3 suppressions
  1. 2 0
      Module/include/EventCode.h
  2. 5 3
      Module/mod_counterconnector/ConnectorFSM.cpp

+ 2 - 0
Module/include/EventCode.h

@@ -599,6 +599,8 @@ ERROR_ACCESSAUTH_CONNECT_ACS}
 #define LOG_WARN_COUNTERCONNECT_CALLROUTE_CONNECT_FAILED			0x30461002	 //call route connect server failed
 #define LOG_WARN_COUNTERCONNECT_CALLROUTE_SUCCESS					0x30461003	 //call route success
 #define LOG_WARN_COUNTERCONNECT_CALLROUTE_FAILED					0x30461004	 //call route failed
+#define LOG_WARN_COUNTERCONNECT_HEADOFFICE_CALL						0x30461005	 //head office call
+#define LOG_WARN_COUNTERCONNECT_BRANCHMODE_CALL						0x30461006	 //branch mode call
 /*----End--CounterConnector------------------------------*/  
 
 

+ 5 - 3
Module/mod_counterconnector/ConnectorFSM.cpp

@@ -666,7 +666,7 @@ void ACMCallFSM::s11_on_entry()
 		if (m_strCallRouteIP.GetLength() != 0) {
 			callurl_node_t *node = get_no_used_node(m_pCallRouteList);
 			if (node != NULL){
-				Dbg("Begin Head Office Make Call!");
+				LogWarn(Severity_Middle, Error_Debug, LOG_WARN_COUNTERCONNECT_HEADOFFICE_CALL, "Begin Head Office Make Call!");
 				char ipstr[256] = {0};
 				char callid_str[64] = { 0 };
 				GetLocalIP(ipstr, 64);
@@ -682,11 +682,13 @@ void ACMCallFSM::s11_on_entry()
 				}
 				m_nCurChanServer = BACK_SERVER;
 				node->bused = TRUE;
-				Dbg("head office make call result:0x%08x", Error);
+				char strmsg[256] = { 0 };
+				_snprintf(strmsg, 256, "head office make call result:0x%08x", Error);
+				LogWarn(Severity_Middle, Error_Debug, LOG_WARN_COUNTERCONNECT_BRANCHMODE_CALL, strmsg);
 				center_connect = TRUE;
 			}	
 			else{
-				Dbg("head office mode no more call router, try to connect branch server.");
+				LogWarn(Severity_Middle, Error_Debug, LOG_WARN_COUNTERCONNECT_BRANCHMODE_CALL, "head office mode no more call router, try to connect branch server.");
 				//m_nCurSipServer = MAIN_SERVER;
 				//m_nCurChanServer = MAIN_SERVER;
 				center_connect = FALSE;