Login
User:       Password:    
portal

The knowledgebase is organized into different categories. Choose a category for a list of articles or search the knowledgebase for articles related to your question.

Search Knowledgebase



Removing Asterisk Call Recordings

« Back

SYMPTOMS
  • Too many old call recordings
  • Running out of disk space due to call recordings
SOLUTION
1. Backup any recordings you wish to keep/archive.

2. Log in to your server via SSH as the root shell user.

3. Run the following command to remove files older than a certain number of days:
Always excercise caution when using the 'rm' command, understand what you are removing, proceed at your own risk!
Customize this command by entering your own information in the input fields.

Keep days of recordings from today

find /var/spool/asterisk/monitor/ -type f -mtime +15 -exec rm -f {} \;

Call recordings older than the defined number of days are now removed.


If you want to automate the file removal process (no archiving needed), you can add the following to a cronjob (removes files older than two weeks at 1:15 AM each day):

15 1 * * * find /var/spool/asterisk/monitor/ -type f -mtime +14 -exec rm -f {} \; >/dev/null 2>&1

Note: The above should all be on the same line on your cron file


« Back

Also Read

Monday, 26th June 2017

IP: 54.224.202.224

Client Login

Email

Password

Remember Me

Forgotten Your Password?
Request a Password Reset


Webhosting Panel

>>> Panel Login

>>> Webmail

Search Knowledgebase