DavidLiu před 4 měsíci
rodič
revize
326cdd9dfd
2 změnil soubory, kde provedl 3 přidání a 4 odebrání
  1. 1 0
      src/core/callcenter/acd.py
  2. 2 4
      src/core/callcenter/call.py

+ 1 - 0
src/core/callcenter/acd.py

@@ -76,6 +76,7 @@ class AcdService:
             call_id = call_info_queue.get_nowait()
             call_info = self.cache.get_call_info(call_id)
             if not call_info or not call_info.device_list:
+                self.logger.info("AcdService tryTransferAgent callInfoCache is null %s", call_id)
                 continue
             agent_number = self.agent_service.assign(AgentActionRequest(saas_id=saasId, service_id=task_service_id))
             if not agent_number:

+ 2 - 4
src/core/callcenter/call.py

@@ -77,10 +77,8 @@ class CallService:
             pass
         custom_device_id = devices[0]
         self.logger.info('hold, custom_device_id=%s'%custom_device_id)
-        # self.client.sync_invoke_method("bridge_break", method_args=(custom_device_id,))
-        # self.client.sync_invoke_method("hold_play", method_args=(custom_device_id,HOLD_MUSIC_PATH))
-        self.client.bridge_break(call_info.call_id, custom_device_id)
-        self.cache.set_need_play_hold_music(call_info.call_id)
+        # self.client.bridge_break(call_info.call_id, custom_device_id)
+        # self.cache.set_need_play_hold_music(call_info.call_id)
         self.logger.info('hold success custom_device_id=%s'%custom_device_id)
 
     def cancel_hold(self, call_info: CallInfo, device_id):