|
|
@@ -800,7 +800,7 @@ void ACMCallFSM::s8_on_entry()
|
|
|
DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("get call route list failed.");
|
|
|
}
|
|
|
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_USER).setLogCode("QLR0402304C1")("start remote video call");
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setLogCode("QLR0402304C1")("start remote video call");
|
|
|
|
|
|
int time = GetDelayTime();
|
|
|
|
|
|
@@ -870,8 +870,6 @@ void ACMCallFSM::s11_on_entry()
|
|
|
m_uConnectTime = y2k_time_now();
|
|
|
m_bConnected = false;
|
|
|
m_lConnectCostTime = SP::Module::Comm::RVCGetTickCount();
|
|
|
-
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_USER).setLogCode("QLR0402304Z80101")("begin remote video call");
|
|
|
|
|
|
if (m_nCurSipServer == CurServerNum::Error_Server){
|
|
|
m_LastSipError = Error_NetBroken;
|
|
|
@@ -937,13 +935,11 @@ void ACMCallFSM::s11_on_entry()
|
|
|
if (m_LastSipError != Error_Succeed)
|
|
|
{
|
|
|
PostEventFIFO(new FSMEvent(USER_EVT_JMP_FAIL));
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304Z80201").setResultCode("RTA3421")("send sip failed!");
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304C2").setResultCode("RTA3421")("send sip failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setLogCode("QLR0402304C2").setResultCode("RTA3421")("send sip failed!");
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
ScheduleTimer(11,SIP_CALL_TIMER);
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_USER).setLogCode("QLR0402304Z80201")("send sip success!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -973,8 +969,7 @@ unsigned int ACMCallFSM::s11_on_event(FSMEvent* event)
|
|
|
}
|
|
|
(bool)m_nCurSipServer?(m_nCurSipServer= CurServerNum::Error_Server):(m_nCurSipServer= CurServerNum::BACK_SERVER);
|
|
|
m_nSipErrorNum++;
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304Z80301").setResultCode("RTA3432")("sip connect failed for server error.");
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304C2").setResultCode("RTA3432")("sip connect failed for server error.");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setLogCode("QLR0402304C2").setResultCode("RTA3432")("sip connect failed for server error.");
|
|
|
}
|
|
|
else if (event->iEvt == USER_EVT_ASSISTCHAN_IDEL)
|
|
|
{
|
|
|
@@ -1005,8 +1000,7 @@ unsigned int ACMCallFSM::s11_on_event(FSMEvent* event)
|
|
|
if (ReConnectionSipphone()) {
|
|
|
m_bConSipphone = true;
|
|
|
}
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304Z80301").setResultCode("RTA3434")("sip connect failed for entity error");
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304C2").setResultCode("RTA3434")("sip connect failed for entity error");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setLogCode("QLR0402304C2").setResultCode("RTA3434")("sip connect failed for entity error");
|
|
|
}
|
|
|
else if (event->iEvt == EVT_TIMER)
|
|
|
{
|
|
|
@@ -1021,8 +1015,7 @@ unsigned int ACMCallFSM::s11_on_event(FSMEvent* event)
|
|
|
}
|
|
|
DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("sip call timeout,release call");
|
|
|
m_nSipErrorNum++;
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304Z80301").setResultCode("RTA3435")("sip connect failed for timeout");
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304C2").setResultCode("RTA3435")("sip connect failed for timeout");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setLogCode("QLR0402304C2").setResultCode("RTA3435")("sip connect failed for timeout");
|
|
|
}
|
|
|
else if (event->iEvt == USER_EVT_JMP_FAIL)
|
|
|
{
|
|
|
@@ -1036,8 +1029,7 @@ unsigned int ACMCallFSM::s11_on_event(FSMEvent* event)
|
|
|
LogWarn(Severity_Low, Error_Unexpect, LOG_WARN_COUNTERCONNECT_SIPCONNECT_FUNC_FAILED,"sipphone connect func failed, error server");
|
|
|
}
|
|
|
m_nSipErrorNum++;
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304Z80301").setResultCode("RTA3436")("sip connect failed for entity error");
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304C2").setResultCode("RTA3436")("sip connect failed for entity error");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setLogCode("QLR0402304C2").setResultCode("RTA3436")("sip connect failed for entity error");
|
|
|
}
|
|
|
else if (event->iEvt == USER_EVT_STOPLOACALREMOTEVIDEO)
|
|
|
{
|
|
|
@@ -1050,9 +1042,7 @@ unsigned int ACMCallFSM::s11_on_event(FSMEvent* event)
|
|
|
|
|
|
void ACMCallFSM::s12_on_entry()
|
|
|
{
|
|
|
- //ErrorCodeEnum Error = Error_Succeed;
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_USER).setLogCode("QLR0402304Z80301")("sip connect success!");
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_USER).setLogCode("QLR0402304C2")("sip channel connect success!");
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setLogCode("QLR0402304C2")("sip channel connect success!");
|
|
|
m_LastAssistError = Error_Succeed;
|
|
|
if (m_nCurChanServer == CurServerNum::Error_Server)
|
|
|
{
|
|
|
@@ -1081,21 +1071,15 @@ void ACMCallFSM::s12_on_entry()
|
|
|
if (m_LastAssistError != Error_Succeed) {
|
|
|
PostEventFIFO(new FSMEvent(USER_EVT_JMP_FAIL));
|
|
|
if (Error_NetBroken == m_LastAssistError) {
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304Z80401").setResultCode("RTA3441")("assistant channel connect failed for net broken");
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304C3").setResultCode("RTA3441")("assistant channel connect failed for net broken");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setLogCode("QLR0402304C3").setResultCode("RTA3441")("assistant channel connect failed for net broken");
|
|
|
}
|
|
|
else if (Error_Param == m_LastAssistError) {
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304Z80401").setResultCode("RTA3442")("assistant channel connect failed error param");
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304C3").setResultCode("RTA3442")("assistant channel connect failed error param");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setLogCode("QLR0402304C3").setResultCode("RTA3442")("assistant channel connect failed error param");
|
|
|
}
|
|
|
else {
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304Z80401").setResultCode("RTA3443")("assistant channel connect failed");
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304C3").setResultCode("RTA3443")("assistant channel connect failed");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setLogCode("QLR0402304C3").setResultCode("RTA3443")("assistant channel connect failed");
|
|
|
}
|
|
|
}
|
|
|
- else {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_USER).setLogCode("QLR0402304Z80401")("assistant channel connect success!");
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
void ACMCallFSM::s12_on_exit() {}
|
|
|
@@ -1136,8 +1120,7 @@ unsigned int ACMCallFSM::s12_on_event(FSMEvent* event)
|
|
|
LogWarn(Severity_Low, Error_Unexpect, LOG_WARN_COUNTERCONNECT_CHANCONNECT_CHANSTATE_IDLE,"chan connect server failed, error server");
|
|
|
}
|
|
|
(bool)m_nCurChanServer?(m_nCurChanServer= CurServerNum::Error_Server):(m_nCurChanServer= CurServerNum::BACK_SERVER);
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304Z80501").setResultCode("RTA3452")("assistant channel bridge failed for server error");
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304C3").setResultCode("RTA3452")("assistant channel bridge failed for server error");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setLogCode("QLR0402304C3").setResultCode("RTA3452")("assistant channel bridge failed for server error");
|
|
|
}
|
|
|
HangupCall();
|
|
|
//StopVideo();
|
|
|
@@ -1146,8 +1129,7 @@ unsigned int ACMCallFSM::s12_on_event(FSMEvent* event)
|
|
|
{
|
|
|
ChanStateConnectedEvent *e = static_cast<ChanStateConnectedEvent *>(event);
|
|
|
StartVideo(e->m_param.GetData());
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_USER).setLogCode("QLR0402304Z80501")("assistant channel bridge success!");
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_USER).setLogCode("QLR0402304C3")("assistant channel bridge success!");
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setLogCode("QLR0402304C3")("assistant channel bridge success!");
|
|
|
}
|
|
|
else if (event->iEvt == USER_EVT_ASSISTCHAN_IDEL)
|
|
|
{
|
|
|
@@ -1164,8 +1146,7 @@ unsigned int ACMCallFSM::s12_on_event(FSMEvent* event)
|
|
|
if (ReConnectionAssistchan()) {
|
|
|
m_bConAssist = true;
|
|
|
}
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304Z80501").setResultCode("RTA3453")("assistant channel bridge failed for entity restart");
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304C3").setResultCode("RTA3453")("assistant channel bridge failed for entity restart");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setLogCode("QLR0402304C3").setResultCode("RTA3453")("assistant channel bridge failed for entity restart");
|
|
|
}
|
|
|
else if (event->iEvt == USER_EVT_SIPPHONE_IDEL)
|
|
|
{
|
|
|
@@ -1200,8 +1181,7 @@ unsigned int ACMCallFSM::s12_on_event(FSMEvent* event)
|
|
|
else{
|
|
|
LogWarn(Severity_Low, Error_Unexpect, LOG_WARN_COUNTERCONNECT_CHANCONNECT_FUNC_FAILED,"chan connect func failed, error server");
|
|
|
}
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304Z80501").setResultCode("RTA3454")("assistant channel bridge failed for entity error");
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402304C3").setResultCode("RTA3454")("assistant channel bridge failed for entity error");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setLogCode("QLR0402304C3").setResultCode("RTA3454")("assistant channel bridge failed for entity error");
|
|
|
}
|
|
|
|
|
|
return 0;
|