|
@@ -140,7 +140,6 @@ class AgentEventService:
|
|
if is_agent:
|
|
if is_agent:
|
|
if call_id:
|
|
if call_id:
|
|
self.cache.set_call_is_end(call_id)
|
|
self.cache.set_call_is_end(call_id)
|
|
- self.get_call_info_record(call_info)
|
|
|
|
self.agent_monitor_service.update_processing(agent_monitor)
|
|
self.agent_monitor_service.update_processing(agent_monitor)
|
|
self.reprocessing_idle(AgentDelayStateData(saas_id, flow_id, agent_num, AgentServiceState.REPROCESSING, AgentScene.MANUAL))
|
|
self.reprocessing_idle(AgentDelayStateData(saas_id, flow_id, agent_num, AgentServiceState.REPROCESSING, AgentScene.MANUAL))
|
|
self.push_handler.push_on_call_end(saas_id, flow_id, agent_num, AgentScene.MANUAL, ServiceDirect.MANUAL_CALL.service_direct, '0')
|
|
self.push_handler.push_on_call_end(saas_id, flow_id, agent_num, AgentScene.MANUAL, ServiceDirect.MANUAL_CALL.service_direct, '0')
|
|
@@ -224,8 +223,7 @@ class AgentEventService:
|
|
self.agent_actionlog_service.insert_service_state(agent_monitor, AgentServiceState.REPROCESSING,
|
|
self.agent_actionlog_service.insert_service_state(agent_monitor, AgentServiceState.REPROCESSING,
|
|
AgentLogState.CHANNEL_HANG_UP, service_id=human_service_id)
|
|
AgentLogState.CHANNEL_HANG_UP, service_id=human_service_id)
|
|
self.data_handle_server.update_record(call_id, time_end=datetime.now())
|
|
self.data_handle_server.update_record(call_id, time_end=datetime.now())
|
|
- if CHANNEL_HANGUP == event_name:
|
|
|
|
- self.get_call_info_record(call_info)
|
|
|
|
|
|
+
|
|
|
|
|
|
except:
|
|
except:
|
|
traceback.print_exc()
|
|
traceback.print_exc()
|
|
@@ -243,12 +241,7 @@ class AgentEventService:
|
|
self.agent_monitor_service.update_idle(agent_monitor)
|
|
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.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)
|
|
self.agent_actionlog_service.insert_service_state(agent_monitor, AgentServiceState.IDLE, AgentLogState.REPROCESSING_IDLE)
|
|
- def get_call_info_record(self, call_info):
|
|
|
|
- records = []
|
|
|
|
- self.logger.info("1223232 %s", records)
|
|
|
|
- for value in call_info.device_info_map.values():
|
|
|
|
- records.append(value.record)
|
|
|
|
- self.logger.info("get_call_info_record: %s", records)
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|