Recording Question.

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Recording Question.

Postby chasejordan1 » Sun Apr 17, 2016 9:36 pm

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.
chasejordan1
 
Posts: 182
Joined: Fri Mar 07, 2008 11:57 am

Re: Recording Question.

Postby mflorell » Mon Apr 18, 2016 6:11 am

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.
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Recording Question.

Postby chasejordan1 » Mon Apr 18, 2016 8:45 am

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.
chasejordan1
 
Posts: 182
Joined: Fri Mar 07, 2008 11:57 am


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 107 guests