Find Jobs
Hire Freelancers

Linux (CentOS) and FreePBX configuration help

$10-30 USD

Terminado
Publicado hace alrededor de 1 año

$10-30 USD

Pagado a la entrega
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.
ID del proyecto: 36450315

Información sobre el proyecto

3 propuestas
Proyecto remoto
Activo hace 1 año

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
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 en 1 día
0,0 (0 comentarios)
0,0
0,0
3 freelancers están ofertando un promedio de $22 USD por este trabajo
Avatar del usuario
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 en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de CANADA
Saint-Hyacinthe, Canada
5,0
1
Forma de pago verificada
Miembro desde nov 28, 2015

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.