AST_CRON_audio_compress_2.pl delete originals
![Post Post](./styles/vicidial/imageset/icon_post_target.gif)
Out of curiousity why do we not delete the originals during this script action? Is it for maybe wanting to record in different formats besides the original? Maybe we should add a delete option to delete the original. If what I am doing is considered alright I will write that option.
I have a system that fills the recordings up almost daily... I added a `rm "$dir2/$ALLfile"`; so that it will delete live and it seems to work just fine. Just making sure I am not doing anything that may cause problems.
VERSION: 2.4-349a
BUILD: 111122-1333
Asterisk 1.4
Suse 10.3
Redux 3.1.13
I have a system that fills the recordings up almost daily... I added a `rm "$dir2/$ALLfile"`; so that it will delete live and it seems to work just fine. Just making sure I am not doing anything that may cause problems.
VERSION: 2.4-349a
BUILD: 111122-1333
Asterisk 1.4
Suse 10.3
Redux 3.1.13
- Code: Select all
if ($MP3 > 0)
{
$MP3file = $FILES[$i];
$MP3file =~ s/-all\.wav/-all.mp3/gi;
if ($DB) {print "|$recording_id|$ALLfile|$MP3file| |$SQLfile|\n";}
`$lamebin -b 16 -m m --silent "$dir2/$ALLfile" "$dir2/MP3/$MP3file"`;
`rm "$dir2/$ALLfile"`;
$stmtA = "UPDATE recording_log set location='http://$server_ip/RECORDINGS/MP3/$MP3file' where recording_id='$recording_id';";
if($DBX){print STDERR "\n|$stmtA|\n";}
$affected_rows = $dbhA->do($stmtA); # or die "Couldn't execute query:|$stmtA|\n";
}