This post is at: ForumGeneral questions
2 posts / 0 new
Last post
stephenkkaye
stephenkkaye's picture
Joined: 2012/02/27
Points: 0

Where do I specify how long to store tenant recordings for?

eeman
eeman's picture
Joined: 2007/11/06
Points: 110

your looking for a unix command to delete files older than a certain date. there is nothing out-of-the-box that does this so your files stay there indefinitely.

for recorded calls I run this out of crontab

@daily /usr/bin/find /var/spool/asterisk/monitor/ -type f -mtime +60 -exec rm {} \;

that deletes it after 61 days. If they cant copy that recording off by 60 days, I have no sympathy :-)

Erik Smith
dCAP
Thirdlane/Asterisk Support available
esmith.bgnv@gmail.com