余尚辉 4 달 전
부모
커밋
d2fe8013ce
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/core/callcenter/agent.py
  2. 1 1
      src/core/callcenter/esl/handler/channel_hangup_handler.py

+ 1 - 1
src/core/callcenter/agent.py

@@ -373,7 +373,7 @@ class AgentMonitorService:
         agent_monitor.service_state = AgentServiceState.LOGOUT.code
         agent_monitor.heart_state = AgentHeartState.DEFAULT.code
         agent_monitor.heart_time = datetime.utcnow()
-        self.logger.info("update_checkout", agent_monitor.check_out_time)
+        self.logger.info("update_checkout %s", agent_monitor.check_out_time)
         db.session.commit()
 
     def update_idle(self, agent_monitor):

+ 1 - 1
src/core/callcenter/esl/handler/channel_hangup_handler.py

@@ -123,7 +123,7 @@ class ChannelHangupHandler(EslEventHandler):
             # 更新坐席状态
             if device_info.device_type == DeviceType.AGENT.code:
                   self.push_handler.push_on_call_end(call_info.cti_flow_id, call_info.agent_key, AgentScene.ROBOT, call_info.direction, device_info.device_type)
-                  self.push_handler.push_on_agent_work_report(call_info.saas_id, call_info.cti_flow_id, call_info.agent_key,call_info.call_id, AgentScene.ROBOT,WorkStatus.AGENT_DIALING)
+                  self.push_handler.push_on_agent_work_report(call_info.saas_id, call_info.cti_flow_id, call_info.agent_key,call_info.call_id, AgentScene.ROBOT,WorkStatus.AGENT_HANG_IDLE)
                   self.dataHandleServer.update_agent_monitor_service_state(device_id, AgentServiceState.IDLE.code)
         except:
             traceback.print_exc()