Browse Source

Merge branch 'develop' of ssh://gitlab.fuxicarbon.com:1111/client_service/voice-gateway-service into develop

Davidliu 3 months ago
parent
commit
cc50fc01d3
2 changed files with 2 additions and 1 deletions
  1. 1 1
      src/core/callcenter/esl/handler/channel_hangup_handler.py
  2. 1 0
      src/core/voip/bot.py

+ 1 - 1
src/core/callcenter/esl/handler/channel_hangup_handler.py

@@ -157,7 +157,7 @@ class ChannelHangupHandler(EslEventHandler):
             sip_status.append(value.sip_status)
             hangup_cause.append(value.hangup_cause)
         self.logger.info("get_call_info_record: %s", records)
-        threading.Thread(target=self._update_record_in_thread, args=(call_info.call_id, records, ",".join(sip_status), ",".join(hangup_cause),call_info.answer_count)).start()
+        threading.Thread(target=self._update_record_in_thread, args=(call_info.call_id, set(records), ",".join(sip_status), ",".join(hangup_cause),call_info.answer_count)).start()
 
     def _update_record_in_thread(self, call_id, records, sip_status, hangup_cause, answer_count):
         """用于在独立线程中执行 update_record"""

+ 1 - 0
src/core/voip/bot.py

@@ -243,6 +243,7 @@ class MyCall(pj.Call):
                 # self.user_asr_text_queue.put("ASR408error")
                 self.chat('ASR408error')
                 registry.BOT_ASR_408.labels(self.taskId).inc()
+                self.reset_wait_time()
         except ValueError as e:
             self.logger.info(f"无效的等待时间参数: {wait_time}, 错误: {e}")
             self.reset_wait_time()