|
@@ -149,6 +149,7 @@ class AgentEventService:
|
|
|
self.agent_actionlog_service.insert_service_state(agent_monitor, AgentServiceState.REPROCESSING, AgentLogState.CHANNEL_HANG_UP)
|
|
|
|
|
|
self.data_handle_server.update_record(call_id, time_end=datetime.now())
|
|
|
+ self.get_call_info_record(call_info)
|
|
|
# 同步处理后处理置闲
|
|
|
# reprocessingIdle(statusDto);
|
|
|
# agentProducer.pushDelayedStatus(statusDto, reprocessingTimeout);
|
|
@@ -222,6 +223,7 @@ class AgentEventService:
|
|
|
self.agent_actionlog_service.insert_service_state(agent_monitor, AgentServiceState.REPROCESSING,
|
|
|
AgentLogState.CHANNEL_HANG_UP, service_id=human_service_id)
|
|
|
self.data_handle_server.update_record(call_id, time_end=datetime.now())
|
|
|
+ self.get_call_info_record(call_info)
|
|
|
except:
|
|
|
traceback.print_exc()
|
|
|
finally:
|
|
@@ -238,6 +240,13 @@ class AgentEventService:
|
|
|
self.agent_monitor_service.update_idle(agent_monitor)
|
|
|
self.push_handler.push_on_agent_work_report(state_data.saas_id, state_data.flow_id, state_data.agent_num, "", state_data.scene, WorkStatus.AGENT_HANG_IDLE)
|
|
|
self.agent_actionlog_service.insert_service_state(agent_monitor, AgentServiceState.IDLE, AgentLogState.REPROCESSING_IDLE)
|
|
|
+ def get_call_info_record(self, call_info):
|
|
|
+ records = []
|
|
|
+ for value in call_info.device_info_map.values():
|
|
|
+ records.append(value.record)
|
|
|
+ self.logger.info("get_call_info_record: %s", records)
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
class AgentOperService:
|