|
@@ -126,8 +126,8 @@ class AgentEventService:
|
|
|
else:
|
|
|
# 用户侧接起
|
|
|
self.agent_monitor_service.update_calling(agent_monitor)
|
|
|
- self.push_handler.push_on_agent_work_report(saas_id, flow_id, agent_num, call_id, AgentScene.MANUAL, WorkStatus.AGENT_ANSWER_OUTGOING)
|
|
|
- self.push_handler.push_on_agent_report(saas_id, agent_num, AgentScene.MANUAL, AgentServiceState.CALLING)
|
|
|
+ # self.push_handler.push_on_agent_work_report(saas_id, flow_id, agent_num, call_id, AgentScene.MANUAL, WorkStatus.AGENT_ANSWER_OUTGOING)
|
|
|
+ # self.push_handler.push_on_agent_report(saas_id, agent_num, AgentScene.MANUAL, AgentServiceState.CALLING)
|
|
|
|
|
|
#挂断
|
|
|
if CHANNEL_HANGUP == event_name:
|
|
@@ -150,6 +150,8 @@ class AgentEventService:
|
|
|
|
|
|
if (CHANNEL_BRIDGE == event_name or PLAYBACK_START == event_name) and is_agent:
|
|
|
self.push_handler.push_on_ring_start(saas_id, flow_id, agent_num, AgentScene.MANUAL, call_id)
|
|
|
+ self.push_handler.push_on_agent_work_report(saas_id, flow_id, agent_num, call_id, AgentScene.MANUAL, WorkStatus.AGENT_ANSWER_OUTGOING)
|
|
|
+ self.push_handler.push_on_agent_report(saas_id, agent_num, AgentScene.MANUAL, AgentServiceState.CALLING)
|
|
|
|
|
|
if DETECTED_TONE == event_name and not is_agent:
|
|
|
self.push_handler.push_on_detected_tone(saas_id, flow_id, call_id, AgentScene.MANUAL, call_id)
|