Asterisk wav to mp3 call recording converter script
We found a great article and combined with the comments/suggestions, we present a simple guide to get Asterisk WAV files converted to MP3
Source article: http://www.thiscoolsite.com/?p=73
My script is modified to use MLAME without modifying the date stamp and since i had some problems with the script on the above site, i think this below guide/script will definitely work on Debian (tested on Lenny).
Enjoy.
Pre-req Get LAME – Will already exist if use our Asterisk Install Script
cd /usr/src
wget http://downloads.sourceforge.net/project/lame/lame/3.98.2/lame-398-2.tar.gz?use_mirror=nchc
tar -zxvf lame-398-2.tar.gz
cd lame-398-2
./configure
make
make install
Copy MLAME
cp /usr/sr/lame-398-2/misc/mlame /var/spool/asterisk/monitor/
chmod +x /var/spool/asterisk/monitor/mlame
Get Script
cd /usr/src
wget http://www.intuitinnovations.com/downloads/runconverter
chmod +x runconverter
Modify script – If needed
nano runconverter
Create cron job with line like this
/usr/src/runconverter &> /dev/null
Quick test
./runconverter