Find Jobs
Hire Freelancers

Linux (CentOS) and FreePBX configuration help

$10-30 USD

Slutfört
Publicerad ungefär ett år sedan

$10-30 USD

Betalning vid leverans
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

Om projektet

3 anbud
Distansprojekt
Senaste aktivitet ett år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
Tilldelad till:
Använd 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 Om 1 dag
0,0 (0 omdömen)
0,0
0,0
3 frilansar lägger i genomsnitt anbud på $22 USD för detta uppdrag
Använd 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 Om 1 dag
0,0 (0 omdömen)
0,0
0,0

Om kunden

Flagga för CANADA
Saint-Hyacinthe, Canada
5,0
1
Verifierad betalningsmetod
Medlem sedan nov. 28, 2015

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.