Asterisk Old Prompts Clean-up

Fertiggestellt Veröffentlicht Feb 10, 2009 Bezahlt bei Lieferung
Fertiggestellt Bezahlt bei Lieferung

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

Audiodienste Linux PHP

Projekt-ID: #384311

Über das Projekt

9 Vorschläge Remote Projekt Aktiv Feb 15, 2009

Vergeben an:

innovativeWork

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

$30 USD in 2 Tagen
(94 Bewertungen)
6.8

9 Freelancer bieten im Durchschnitt $65 für diesen Job

meral

can do it. need escrow to start.

$100 USD in 0 Tagen
(146 Bewertungen)
7.9
Arenabpo

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

$50 USD in 1 Tag
(159 Bewertungen)
7.7
dagdya99

When shall start

$30 USD in 0 Tagen
(209 Bewertungen)
7.1
neanton

Lets start

$40 USD in 0 Tagen
(84 Bewertungen)
5.9
tahiralmas

can do the task using shell scripting

$100 USD in 2 Tagen
(10 Bewertungen)
4.3
teksavvy

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

$100 USD in 3 Tagen
(8 Bewertungen)
3.9
Shadowvip

Ready to work. More info on PM

$35 USD in 1 Tag
(0 Bewertungen)
0.0