From ab020fb519b789ec30dafcac0eb4b07df6ae9e64 Mon Sep 17 00:00:00 2001 From: boffart <> Date: Wed, 9 Oct 2024 23:52:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81=20?= =?UTF-8?q?=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=81=D0=B8?= =?UTF-8?q?=D0=BC=D0=BB=D0=B8=D0=BD=D0=BA=D0=BE=D0=B2=20=D0=B2=20=D0=BC?= =?UTF-8?q?=D0=BE=D0=B4=D1=83=D0=BB=D1=8C=20=D1=80=D0=B0=D1=81=D1=88=D0=B8?= =?UTF-8?q?=D1=80=D0=B5=D0=BD=D0=BD=D0=BE=D0=B9=20=D0=B8=D1=81=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=B8=20=D0=B7=D0=B2=D0=BE=D0=BD=D0=BA=D0=BE=D0=B2?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Core/Workers/WorkerCdr.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Core/Workers/WorkerCdr.php b/src/Core/Workers/WorkerCdr.php index 55d8d5d0..0cc569ea 100644 --- a/src/Core/Workers/WorkerCdr.php +++ b/src/Core/Workers/WorkerCdr.php @@ -281,14 +281,6 @@ private function checkBillsecMakeRecFile(int $billsec, array $row): array $nice = Util::which('nice'); Processes::mwExecBg("$nice -n -19 $wav2mp3Path '{$p_info['dirname']}/{$p_info['filename']}'"); - $dirLink = str_replace('/monitor/', '/pretty-monitor/', dirname($p_info['dirname'])); - $formattedDate = date('Y-m-d-H_i', strtotime($row['start'])); - $uid = str_replace('mikopbx-', '', $row['linkedid']); - $prettyFilename = "{$uid}-$formattedDate-{$row['src_num']}-{$row['dst_num']}-id-{$row['id']}"; - $mkdirPath = Util::which('mkdir'); - $lnPath = Util::which('ln'); - shell_exec("$mkdirPath -p $dirLink; $lnPath -s {$row['recordingfile']} $dirLink/$prettyFilename.mp3"); - // Get the directory with current month's recordings $dir = dirname($p_info['dirname'], 2); Processes::mwExecBg("$nice -n -19 $lostWav2mp3Path '$dir'");