Asterisk Old Prompts Clean-up

What I need is a PHP Script to be called by 'cron' to clean-up old recorded outgoing messages at some regular interval. Basically, we have outgoing messages that are recorded by my customer that are saved into a folder '/var/lib/asterisk/sounds/custom/xxxxxxx/' where xxxxxxx is the DID of the owner. There is a database call 'dax' and a table called 'dnislookup' that contains the current file name of the prompts to be played to the callers. However, the customer's folder will have several recorded prompts which are old.

Your job is to create a script that will open the table, gather the current prompt file names and then go to the customers folder and delete any that are not current. The fields in dnislookup of concern are 'bin1' to 'bin8', 'bin90' to 'bin94'. These fields will contain the current & active prompts without the file extension. An example of a file name might be '1_1234' (note: '1_' means it's bin 1) - In the customer's folder this would be '[url removed, login to view]'

Confused, please ask questions

Thanks, Bart

Kemahiran: Perkhidmatan Audio, Linux, PHP

Lihat lagi: where played, old database, custom audio services, asterisk amp, old messages, dax, clean-up, Clean, clean up, clean my, callers, audio messages, asterisk, asterisk php, amp asterisk, audio file clean, asterisk outgoing, active call, outgoing call, asterisk database fields, asterisk extension custom, cron delete table php, asterisk custom extension, bin file, clean php script

Tentang Majikan:
( 39 ulasan ) Buena Park, United States

ID Projek: #384311

Dianugerahkan kepada:


Task is clear. Escrow required to start. Thank you.

$30 USD dalam 2 hari
(94 Ulasan)

9 pekerja bebas membida secara purata $65 untuk pekerjaan ini


can do it. need escrow to start.

$100 USD dalam 0 hari
(146 Ulasan)

Hello, I am php expert,this script is easy for me. i can write it for you.(I ensure 100% satisfiction) Thanks!

$50 USD dalam sehari
(159 Ulasan)

When shall start

$30 USD dalam 0 hari
(209 Ulasan)

Lets start

$40 USD dalam 0 hari
(84 Ulasan)

can do the task using shell scripting

$100 USD dalam 2 hari
(10 Ulasan)

Expert in php and Asterisk PBX, have daily on these techs, can kickstart right now.

$100 USD dalam 3 hari
(8 Ulasan)

Im in the USA and can do this no problem. PHP and Asterisk is my specialty, check out projects I have written at [login to view URL] on the left menu under 'Projects"

$100 USD dalam 3 hari
(0 Ulasan)

Ready to work. More info on PM

$35 USD dalam sehari
(0 Ulasan)