Quellcode durchsuchen

新增ai白名单,fix1

Davidliu vor 2 Monaten
Ursprung
Commit
7e1e573402
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/core/callcenter/esl/client.py

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

@@ -577,12 +577,12 @@ class OutboundClient:
                     # Ignore the error if socket is already closed
                     pass
 
-        def transfer_custom(self, con, bucket_call_type, call_id, device_id, new_device_id, kwargs):
+        def transfer_custom(self, con, bucket_call_type, call_id, device_id, new_device_id, **kwargs):
             self.answer(con, call_id, device_id)
             self.build_call_info(CallType.INCOMING_AGENT_CALL.code, call_id, device_id, new_device_id, destination=None, bucket_type=bucket_call_type, **kwargs)
             self.server.agent.acd_service.transfer_to_agent(call_id, device_id)
 
-        def bridge_ai(self, con, bucket_call_type, call_id, device_id, new_device_id, kwargs):
+        def bridge_ai(self, con, bucket_call_type, call_id, device_id, new_device_id, **kwargs):
             destination = self.server.agent.register(**kwargs)
             self.server.logger.info("call_id=%s, device_id=%s, destination=%s, new_device_id=%s" % (call_id, device_id, destination, new_device_id))
             self.build_call_info(CallType.INCOMING_BOT_CALL.code, call_id, device_id, new_device_id, str(destination), bucket_type=bucket_call_type, **kwargs)