shanghui 3 mesiacov pred
rodič
commit
8af16a0f4e

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

@@ -168,12 +168,12 @@ class ChannelHangupHandler(EslEventHandler):
                 self.dataHandleServer.update_record(call_id, time_end=datetime.now(), sip_status=sip_status, sip_hangup_cause=hangup_cause, status=status)
                 return
             merge_record = self.merge_audio_files(records) if len(records) > 1 else records[0]
-            try:
-                self._ensure_path_permissions(merge_record)
-                os.chmod(merge_record, 0o755)  # 设置文件权限为 755
-                self.logger.info("成功设置文件权限: %s -> 755", merge_record)
-            except Exception as chmod_error:
-                self.logger.error("设置文件权限失败: %s, error: %s", merge_record, str(chmod_error))
+            # try:
+            #     self._ensure_path_permissions(merge_record)
+            #     os.chmod(merge_record, 0o755)  # 设置文件权限为 755
+            #     self.logger.info("成功设置文件权限: %s -> 755", merge_record)
+            # except Exception as chmod_error:
+            #     self.logger.error("设置文件权限失败: %s, error: %s", merge_record, str(chmod_error))
 
             self.dataHandleServer.update_record(call_id, time_end=datetime.now(), url=merge_record, sip_status=sip_status, sip_hangup_cause=hangup_cause, status=status)
             self.logger.info("更新录音记录完成: call_id=%s", call_id)