New to freepbx. I’ve recently started recording my calls on the server. I want them to automatically delete themselves after being stored for a month so I don’t run out of storage space.
Can someone help me out on where I find the cdr table and how I would input a script to do this? I want to view the table atleast so I have an idea on how its stored to even think of writing a script to do this.
Hi thanks for the correction.
I tried the command and used 360 instead of 30 to delete older than 360 days but I do not see it deleting anything.
Does the command look for subfolders?
Do you have to run it from a specific directory?
Do you need a plus in front of the number of days?
I am having the same issue. I have a box running
Asterisk 11.13.0 built by palosanto @ rpmbuild64-2.elastix.palosanto.com on a x86_64 running Linux
I’m looking to have all recordings automatically deleted after 60 days.
The location is var/spool/asterisk/monitor
Then it has all the sub folders of the year/month/day/.wav
I tried dicko’s and senates suggestions but neither seem to be working for me. I verified that cron is running…
[root@localhost ~]# rpm -q vixie-cron
vixie-cron-4.1-81.el5
[root@localhost ~]# /sbin/service crond status
crond (pid 3589) is running…
I’m new at this so if you can tell me as simple as possible it would be great. Thanks for your help.
Maybe your distro (Elastix) stores it’s recordings in some other format than .wav or some other place than /var/spool/asterisk/monitor/, you should ask in their forum as the mangle what we are used to here quite severely.