Page 1 of 1

Recording Question.

PostPosted: Sun Apr 17, 2016 9:36 pm
by chasejordan1
Is there a way to delete recordings that are less than 1 minute automatically and in almost real time, with a cron job or something.

I ask because we only want to keep recordings that are longer than a few minutes, the rest do not matter.

Re: Recording Question.

PostPosted: Mon Apr 18, 2016 6:11 am
by mflorell
There is currently no feature that can do that, although we have set up "find" size-based file purging on archive servers before if that will work for you.

Re: Recording Question.

PostPosted: Mon Apr 18, 2016 8:45 am
by chasejordan1
I did some research and came up with this.

2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/bin/find /var/spool/asterisk/monitorDONE/ find . -type f -name "*.mp3" -size -200k -delete

I am running the FTP script at days end, then after the FTP script runs I delete all recordings from telephone servers. This seems to be working, but if anyone wants to add to it or subtract to it, I am sure it would help someone else someday.