Quellcode durchsuchen

callback event serial

DavidLiu vor 4 Monaten
Ursprung
Commit
7d813063a3
1 geänderte Dateien mit 0 neuen und 23 gelöschten Zeilen
  1. 0 23
      src/core/callcenter/esl/client.py

+ 0 - 23
src/core/callcenter/esl/client.py

@@ -558,29 +558,6 @@ class OutboundClient:
                     registry.CALL_INCOMING_REQUESTS.labels(f"{_bucket_call_type}").inc()
                     self.server.dataHandleServer.create_record(call_id, caller_number, _bucket_call_type, service_category=service_category, destination=destination)
 
-                    # # 检查白名单
-                    # if caller_number in whitelist:
-                    #     agents = self.server.load_agent_monitor()
-                    #     destination = random.choice(agents) # 随机取一个坐席号
-                    #     # 直接转接到人工坐席
-                    #     self.server.logger.info( "Caller %s is in whitelist, agents: %s, destination: %s"% (caller_number, agents, destination))
-                    #     call_info['type']= 0
-                    #     call_info['agent_num'] = destination
-                    # else:
-                    #     #转到ai机器人
-                    #     destination = self.server.agent.register(**kwargs)
-                    #     self.server.logger.info("device_id=%s, destination=%s, new_device_id=%s"% (device_id, destination, new_device_id))
-                    #     call_info['type'] = 1
-                    #     call_info['service_category'] = 1
-                    #     call_info['user_id'] = destination
-                    #     call_info['user_name'] = f"机器人{destination}"
-                    #     self.build_call_info(call_id, device_id, new_device_id, str(destination), **kwargs)
-                    #     self.server.cache.add_device_user_part(device_id, destination)
-                    #     con.execute("bridge", "{sip_h_P-LIBRA-CallId=%s,sip_h_P-LIBRA-DeviceId=%s,origination_uuid=%s}user/%s"%(call_id, new_device_id, new_device_id, destination), device_id)
-
-                    # self.server.dataHandleServer.create_record(call_info)
-
-
                     # destination = "user/1001"
                     # msg = ESL.ESLevent("sendmsg", uuid)
                     # msg.addHeader("call-command", "execute")