Skip to content

Commit

Permalink
Перенес создание симлинков в модуль расширенной истории звонков.
Browse files Browse the repository at this point in the history
  • Loading branch information
boffart committed Oct 9, 2024
1 parent 9794d49 commit ab020fb
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Core/Workers/WorkerCdr.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'");
Expand Down

0 comments on commit ab020fb

Please sign in to comment.