VoIP and Multi-Tenant PBX for Businesses and Service Providers
Where do I specify how long to store tenant recordings for?
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 CTO BluegrassNet Voice dCAP Thirdlane Support by BluegrassNet Voice eeman at bluegrassnetvoice dot com
+1 415 / 261-6600 sales@thirdlane.com
Thu, 05/10/2012 - 11:36 | your looking for a unix
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
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com