Maintain FreePBX call recordings
- or -
Post a project like this4229
$$
- Posted:
- Proposals: 2
- Remote
- #169029
- Awarded
Description
Experience Level: Intermediate
Maintain call recordings FreePBX.
Call recordings can be quite large and if left unattended, a PBX that automatically records all of the calls will eventually fill up the entire available hard disk space and stop processing calls. It is important to have a maintenance strategy for dealing with call recordings in order to avoid this. While third-party tools exist to maintain recordings, adequate maintenance can often be performed with simple shell scripts.
The most common way of maintaining call recordings is to automate the deletion of recordings that are older than a certain time frame.
I found he following script called OldRecordingDeletion.sh which will remove all of the recordings older than 14 days. I therefore need this implemented or something similar and as efficient.
#!/bin/bash
# Change this path to reflect your recording storage
# location
RECORDINGS=/var/spool/asterisk/monitor
# Change this number to reflect the maximum age of call
# recordings
RECORDINGEXPIRY=14
# Change this number to reflect the maximum age of the
# deletion logs
LOGEXPIRY=365
# Current date
DATE=`date`
# Delete recordings older than $EXPIRY days
find $RECORDINGS -mtime +$EXPIRY -exec rm -rfv > removal-$DATE.log
# Delete log files older than $LOGEXPRY
find . -mtime +$LOGEXPIRY -exec rm -rf
As well as carrying out the above (or similar solution), I would like the option (on a per user basis) to email call recordings as well as being available on the FreePBX user portal.
Call recordings can be quite large and if left unattended, a PBX that automatically records all of the calls will eventually fill up the entire available hard disk space and stop processing calls. It is important to have a maintenance strategy for dealing with call recordings in order to avoid this. While third-party tools exist to maintain recordings, adequate maintenance can often be performed with simple shell scripts.
The most common way of maintaining call recordings is to automate the deletion of recordings that are older than a certain time frame.
I found he following script called OldRecordingDeletion.sh which will remove all of the recordings older than 14 days. I therefore need this implemented or something similar and as efficient.
#!/bin/bash
# Change this path to reflect your recording storage
# location
RECORDINGS=/var/spool/asterisk/monitor
# Change this number to reflect the maximum age of call
# recordings
RECORDINGEXPIRY=14
# Change this number to reflect the maximum age of the
# deletion logs
LOGEXPIRY=365
# Current date
DATE=`date`
# Delete recordings older than $EXPIRY days
find $RECORDINGS -mtime +$EXPIRY -exec rm -rfv > removal-$DATE.log
# Delete log files older than $LOGEXPRY
find . -mtime +$LOGEXPIRY -exec rm -rf
As well as carrying out the above (or similar solution), I would like the option (on a per user basis) to email call recordings as well as being available on the FreePBX user portal.
Andy M.
0% (0)Projects Completed
-
Freelancers worked with
-
Projects awarded
40%
Last project
25 Apr 2024
New Zealand
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies