Find Jobs
Hire Freelancers

Linux (CentOS) and FreePBX configuration help

$10-30 USD

Completed
Posted about 1 year ago

$10-30 USD

Paid on delivery
Required knowledge of Linux (CentOS), Asterisk & FreePBX. -I need a command to delete files older than 32 days in the Asterisk recording folder and voice mails. /var/spool/asterisk/voicemail/default/ => file pattern msg????.???, recursive /var/spool/asterisk/monitor =>all files, recursive -I need to create a cron job to execute the deletion weekly. The user (meladmin) I use to manage my server is in the following groups: meladmin, wheel and asterisk. But I cannot modify or delete files created by Asterisk. -I need to be able to modify and delete asterisk created files via WinSCP. How do I modify the meladmin user? -I’m trying to use the Voicemail blast. I can call it from an IVR, but the extension cannot access it. How to make it available from the extensions? Deliverable: -The tested commands used to do these small jobs, with a little comment about each of them.
Project ID: 36450315

About the project

3 proposals
Remote project
Active 1 yr ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
1 )deleting files older than 32 days find /var/spool/asterisk/{voicemail/default,monitor} -type f -mtime +32 -delete 2) create a cron job that executes this command weekly, you can open the crontab configuration file for the meladmin user by running the following command crontab -u meladmin -e 3) Then add the following line to the file 0 0 * * 0 find /var/spool/asterisk/{voicemail/default,monitor} -type f -mtime +32 -delete 4) To modify the meladmin user to be able to delete files created by Asterisk, you can add the meladmin user to the asterisk group by running the following command usermod -a -G asterisk meladmin 5) make the Voicemail blast available from extensions, you can add the following lines to your [login to view URL] file exten => 123,1,VoiceMailMain(blast) exten => 123,n,Hangup() This will create an extension (123) that calls the Voicemail blast when dialed. Replace "blast" with the name of the Voicemail blast you want to use.
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0
3 freelancers are bidding on average $22 USD for this job
User Avatar
To delete files older than 32 days in the Asterisk recording and voicemail folder, you can use the find command along with the rm command. The following command should work for you: bash code: sudo find /var/spool/asterisk/voicemail/default/ -name 'msg??????.*' -type f -mtime +32 -exec rm {} \; sudo find /var/spool/asterisk/monitor/ -type f -mtime +32 -exec rm {} \; To create a weekly cron job to perform the deletion, you can use the crontab command to add an entry in the user's cron file. The following command should work for you: code: sudo crontab -u meladmin -e Then, add the following line to the file: bash code: 0 0 * * 0 sudo find /var/spool/asterisk/voicemail/default/ -name 'msg??????.*' -type f -mtime +32 -exec rm {} \; && sudo find /var/spool/asterisk/monitor/ -type f -mtime +32 -exec rm {} \; This will perform the deletion every Sunday at midnight. To be able to modify and delete files created by Asterisk, you need to have proper permissions on the directory where the files are stored. Make sure the user meladmin is in the asterisk and wheel groups. To modify the user meladmin, you can use the following command: css code: sudo usermod -a -G asterisk,wheel meladmin I hope this helps you solve the problem!
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CANADA
Saint-Hyacinthe, Canada
5.0
1
Payment method verified
Member since Nov 28, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.