Find Jobs
Hire Freelancers

Linux (CentOS) and FreePBX configuration help

$10-30 USD

Teljesítve
Kiadva ekkor: körülbelül 1 évvel ezelőtt

$10-30 USD

Teljesítéskor fizetve
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.
Projektazonosító: 36450315

A projektről

3 ajánlat
Távolról teljesíthető projekt
Aktiválva: 1 évvel ezelőtt

Szeretne pénzt keresni?

A Freelancer oldalán történő árajánlatadás előnyei

Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Vázolja ajánlatát
Ingyen regisztrálhat és adhat árajánlatot munkákra
Neki odaítélve:
Felhasználó avatár
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 1 napon belül
0,0 (0 értékelés)
0,0
0,0
3 szabadúszó adott átlagosan $22 USD összegű árajánlatot erre a munkára
Felhasználó avatár
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 1 napon belül
0,0 (0 értékelés)
0,0
0,0

Az ügyfélről

CANADA zászlója
Saint-Hyacinthe, Canada
5,0
1
Fizetési mód hitelesítve
Tagság kezdete: nov. 28, 2015

Ügyfél-hitelesítés

Köszönjük! E-mailben elküldtük a linket, melyen átveheti ajándék egyenlegét.
E-mailje elküldése során valami hiba történt. Kérjük, próbálja újra.
Regisztrált Felhasználók Összes Közzétett Munka
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Előnézet betöltése
Hozzáférést adott a helymeghatározáshoz.
Belépési munkamenete lejárt, és kijelentkeztettük. Kérjük, lépjen be újra.