|
@@ -149,7 +149,7 @@ class AgentEventService:
|
|
|
self.agent_monitor_service.update_processing(agent_monitor)
|
|
|
self.logger.info('挂断更新:%s', agent)
|
|
|
# self.data_handle_server.update_record(call_id, user_id=agent.user_id, user_name=agent.agent_name)
|
|
|
- self.reprocessing_idle(AgentDelayStateData(saas_id, flow_id, agent_num, AgentServiceState.REPROCESSING, AgentScene.MANUAL))
|
|
|
+ self.reprocessing_idle(AgentDelayStateData(saas_id, flow_id, call_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_agent_work_report(saas_id, flow_id, agent_num, call_id, AgentScene.MANUAL, WorkStatus.AGENT_HANG_REPROCESSING)
|
|
|
self.push_handler.push_on_agent_report(saas_id, agent_num, AgentScene.MANUAL, AgentServiceState.REPROCESSING)
|
|
@@ -229,7 +229,7 @@ class AgentEventService:
|
|
|
|
|
|
if CHANNEL_HANGUP == event_name and is_agent:
|
|
|
self.agent_monitor_service.update_processing(agent_monitor)
|
|
|
- self.reprocessing_idle(AgentDelayStateData(saas_id, flow_id, agent_num, AgentServiceState.REPROCESSING, AgentScene.ROBOT))
|
|
|
+ self.reprocessing_idle(AgentDelayStateData(saas_id, flow_id, call_id, agent_num, AgentServiceState.REPROCESSING, AgentScene.ROBOT))
|
|
|
self.push_handler.push_on_call_end(saas_id, flow_id, agent_num, AgentScene.ROBOT, ServiceDirect.ROBOT_CALL.service_direct, "0")
|
|
|
self.push_handler.push_on_agent_work_report(saas_id, flow_id, agent_num, call_id, AgentScene.ROBOT, WorkStatus.AGENT_HANG_REPROCESSING)
|
|
|
self.push_handler.push_on_agent_report(saas_id, agent_num, AgentScene.ROBOT, AgentServiceState.REPROCESSING)
|
|
@@ -256,7 +256,7 @@ class AgentEventService:
|
|
|
self.agent_state_service.idle(agent.saas_id, agent.out_id, agent.phone_num)
|
|
|
self.logger.info('reprocessing_idle_end')
|
|
|
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.call_id, state_data.scene, WorkStatus.AGENT_HANG_IDLE)
|
|
|
self.agent_actionlog_service.insert_service_state(agent_monitor, AgentServiceState.IDLE, AgentLogState.REPROCESSING_IDLE)
|
|
|
|
|
|
|