shanghui 2 months ago
parent
commit
036c2f42c8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/callcenter/esl/client.py

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

@@ -545,8 +545,8 @@ class OutboundClient:
                         if WhiteTypeEnum.AI == in_whitelist_type:
                             bucket_call_type = 0
                             service_category = 1
-                            user_name = f"机器人{destination}"
                             destination = self.bridge_ai(con, bucket_call_type, call_id, device_id, new_device_id, **kwargs)
+                            user_name = f"机器人{destination}"
                         else:
                             bucket_call_type = 0
                             self.transfer_custom(con, bucket_call_type, call_id, device_id, new_device_id, **kwargs)
@@ -555,8 +555,8 @@ class OutboundClient:
                         if bucket and bucket.name == 'AI':
                             bucket_call_type = 1
                             service_category = 1
-                            user_name = f"机器人{destination}"
                             destination = self.bridge_ai(con, bucket_call_type, call_id,  device_id, new_device_id, **kwargs)
+                            user_name = f"机器人{destination}"
                         else:
                             self.transfer_custom(con, bucket_call_type, call_id, device_id, new_device_id, **kwargs)