DavidLiu 3 tháng trước cách đây
mục cha
commit
1c39794630
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      src/core/callcenter/esl/client.py

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

@@ -542,7 +542,8 @@ class OutboundClient:
                         # 检查白名单
                         _bucket_call_type = 0
                         con.execute("answer", "", device_id)
-                        self.server.agent.acd_service.hold(call_id, device_id)
+                        # self.server.agent.acd_service.hold(call_id, device_id)
+                        con.execute("UUID_BROADCAST", f"{device_id} playback::{HOLD_MUSIC_PATH} {SMF_ALEG}", 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)
                     elif bucket and bucket.name == 'AI':
@@ -557,7 +558,7 @@ class OutboundClient:
                     else:
                         # 传统服务
                         con.execute("answer", "", device_id)
-                        con.execute("UUID_BROADCAST", f"{device_id} playback:: {HOLD_MUSIC_PATH} {SMF_ALEG}", device_id)
+                        con.execute("UUID_BROADCAST", f"{device_id} playback::{HOLD_MUSIC_PATH} {SMF_ALEG}", device_id)
                         # self.server.agent.acd_service.hold(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)