DavidLiu 4 月之前
父节点
当前提交
f39270bb53
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/callcenter/agent.py

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

@@ -109,7 +109,6 @@ class AgentEventService:
 
         #应答
         if CHANNEL_ANSWER == event_name:
-            self.logger.info('agent_event_channel, event_name=%s, call_id=%s, device_id=%s, is_agent=%s', event_name, call_id, device_id, is_agent)
             if call_id:
                 if self.cache.get_call_is_end(call_id):
                     # self.logger.warn("event service channel call is end {} {} {} {} {} {}", saas_id, event_name, caller, called, call_id, json.dumps(event.serialize('json')))
@@ -149,6 +148,7 @@ class AgentEventService:
             # agentProducer.pushDelayedStatus(statusDto, reprocessingTimeout);
 
         if (CHANNEL_BRIDGE == event_name or PLAYBACK_START == event_name) and is_agent:
+            self.logger.info('agent_event_channel, event_name=%s, call_id=%s, device_id=%s, is_agent=%s', event_name, call_id, device_id, 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)