余尚辉 4 mesiacov pred
rodič
commit
c0ec63ddaf

+ 1 - 1
src/core/callcenter/esl/client.py

@@ -525,7 +525,7 @@ class OutboundClient:
 
                     # self.logger.info(json.loads(info.serialize('json')))
                     event_name = info.getHeader("Event-Name")
-                    self.logger.info('Event-Name: %s', event_name)
+                    self.server.logger.info('Event-Name: %s', event_name)
                     device_id = info.getHeader("unique-id")
                     caller_number = info.getHeader("Caller-Caller-ID-Number")  # 获取来电号码
                     whitelist = self.server.load_whitelist()

+ 1 - 1
src/core/callcenter/esl/handler/channel_originate_handler.py

@@ -19,7 +19,7 @@ class ChannelOriginateHandler(EslEventHandler):
         device_id = EslEventUtil.getDeviceId(event)
         call = self.cache.get_call_info(call_id)
         device = call.device_info_map.get(device_id)
-        self.logger.info('ChannelOriginateHandler::device_id: %s, device:%s ', device_id, device)
+        self.logger.info('ChannelOriginateHandler::event %s, device.device_type: %s, DeviceType.AGENT.code:%s ', event,device.device_type, DeviceType.AGENT.code)
         if device.device_type == DeviceType.AGENT.code: # 如果是坐席接听 变更坐席状态
             self.push_handler.push_on_call_ring(call.saas_id,call.cti_flow_id,call.agent_key,AgentScene.ROBOT,call.call_id, call.called,call.caller, "00000000000000000")
             self.push_handler.push_on_agent_work_report(call.saas_id, call.cti_flow_id,call.agent_key,call.call_id,AgentScene.ROBOT, WorkStatus.AGENT_RINGING)