Davidliu 1 month ago
parent
commit
0e9c81d872
2 changed files with 4 additions and 1 deletions
  1. 3 0
      src/core/callcenter/esl/client.py
  2. 1 1
      src/core/callcenter/views.py

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

@@ -163,6 +163,7 @@ class InboundClient:
     def exec_when_call_timeout(self, call_id, device_id):
         call_info = self.cache.get_call_info(call_id)
         if not call_info or not (device_id in call_info.device_list):
+            self.logger.info("do_delay_action:exec_when_call_timeout:return, device_id=%s, call_info=%s", device_id, call_info)
             return
         device_info = call_info.device_info_map.get(device_id)
         if device_info and device_info.answer_time is None:
@@ -202,12 +203,14 @@ class InboundClient:
             self.logger.info("exec_when_acd_timeout callInfo为空 callId: %s", call_id)
             return
         device_list = [v for k,v in call_info.device_info_map.items() if v.device_type == DeviceType.CUSTOMER]
+        self.logger.info("do_delay_action:exec_when_acd_timeout:device_list=%s, call_info=%s", device_list, call_info)
         if device_list and len(device_list) == 1:
             device_id = device_list[0].device_id
             self.break0(device_id)
             # if not WaitingHangupMusicPath:
             #     self.hangup_call(call_id, device_id, CallCause.WAITING_TIMEOUT)
             #     return
+
             self.hold_play(device_id, WaitingHangupMusicPath)
             self.play_timeout(call_id, timeout=30)
             next_command = NextCommand(device_id = device_id, next_type=NextType.NEXT_HANGUP.code)

+ 1 - 1
src/core/callcenter/views.py

@@ -197,7 +197,7 @@ def track_event():
     try:
         data = request.get_json()
         # 存入日志文件
-        app.logger.info(json.dumps(data))
+        # app.logger.info(json.dumps(data))
     except Exception as e:
         traceback.print_exc()
         app.logger.error('track_event:exception', e)