Davidliu 2 ヶ月 前
コミット
6e8499907a
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/core/callcenter/esl/handler/channel_hangup_handler.py

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

@@ -219,7 +219,7 @@ class ChannelHangupHandler(EslEventHandler):
             return duration
         except Exception as e:
             print(f"获取音频时长失败: {e}")
-            return None
+            return 0
 
     def merge_audio_files(self,audio_files):
         if not audio_files: