DavidLiu 3 kuukautta sitten
vanhempi
commit
d9ebf67305
1 muutettua tiedostoa jossa 4 lisäystä ja 3 poistoa
  1. 4 3
      src/core/callcenter/esl/client.py

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

@@ -101,8 +101,8 @@ class InboundClient:
                     self.start()
                 else:
                     registry.FLASK_ACTIVE_THREADS.set(threading.active_count())
-                    threading.Thread(target=self.process_esl_event, args=(e,)).start()
-                    # self.choose_thread_pool_executor(e).submit(self.process_esl_event, e)
+                    # threading.Thread(target=self.process_esl_event, args=(e,)).start()
+                    self.choose_thread_pool_executor(e).submit(self.process_esl_event, e)
 
     def choose_thread_pool_executor(self, e):
         call_id = EslEventUtil.getCallId(e)
@@ -557,7 +557,8 @@ class OutboundClient:
                     else:
                         # 传统服务
                         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)
+                        # 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)