Davidliu 2 months ago
parent
commit
9ee1c875fc
2 changed files with 3 additions and 4 deletions
  1. 2 2
      src/core/callcenter/acd.py
  2. 1 2
      src/core/callcenter/esl/client.py

+ 2 - 2
src/core/callcenter/acd.py

@@ -45,13 +45,13 @@ class AcdService:
         agent_number = self.agent_service.assign(AgentActionRequest(saas_id=SAAS_ID, service_id=service_id))
         if not agent_number:
             # 如果没有空闲坐席,播放等待音
-            text = "AcdService transferToAgent agentNumber is empty serviceId:%s,called:%s,callId:%s"%(service_id, call_info.called, call_info.call_id)
+            text = "AcdService transferToAgent agentNumber is empty serviceId:%s,caller:%s,called:%s,callId:%s"%(service_id, call_info.caller, call_info.called, call_info.call_id)
             # print(text, flush=True)
             self.logger.info(text)
             self.add_acd_queue(call_info, service_id)
         else:
             # 有空闲坐席,直接转接
-            text = "AcdService transferToAgent agentNumber not empty %s, serviceId:%s,called:%s,callId:%s"%(agent_number, service_id, call_info.called, call_info.call_id)
+            text = "AcdService transferToAgent agentNumber not empty %s, serviceId:%s,caller:%s,called:%s,callId:%s"%(agent_number, service_id, call_info.caller,call_info.called, call_info.call_id)
             # print(text, flush=True)
             self.logger.info(text)
             self.call_service.transfer(call_info, agent_number, service_id)

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

@@ -537,8 +537,7 @@ class OutboundClient:
                     service_category = 0
                     bucket = self.server.get_bucket(call_id)
                     whitelist = self.server.get_whitelist()
-                    self.server.logger.info('call incoming call_id=%s, device_id=%s, bucket=%s', call_id, device_id, bucket.name)
-                    self.server.logger.info('call incoming caller_number=%s, whitelist=%s', caller_number, json.dumps(whitelist))
+                    self.server.logger.info('call incoming call_id=%s, caller_number=%s, device_id=%s, new_device_id=%s, bucket=%s', call_id, caller_number, device_id, new_device_id, bucket.name)
 
                     if self.in_whitelist(caller_number, whitelist):
                         # 检查白名单