Davidliu 2 months ago
parent
commit
6e8499907a
1 changed files with 1 additions and 1 deletions
  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: