DavidLiu 3 сар өмнө
parent
commit
e1ec67d399

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

@@ -543,7 +543,8 @@ class OutboundClient:
                         _bucket_call_type = 0
                         con.execute("answer", "", 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)
+                        con.execute("playback", HOLD_MUSIC_PATH, 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':
@@ -558,7 +559,8 @@ 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("playback", HOLD_MUSIC_PATH, 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)