Wednesday, June 9, 2010

Install lame on Linux

# cd /usr/src
# wget http://sourceforge.net/projects/lame/files/lame/3.98.4/lame-3.98.4.tar.gz/download
# tar -xvf lame-3.98.4.tar.gz
# cd /usr/src/lame-3.98.4
# make clean
# ./configure
# make
# make install

Convert WAV file to Asterisk playable format

Install sox in your linux box by:

# yum install sox or apt-get install sox

Then convert using the following command:

# sox file_in.wav -r 8000 -c 1 -s -w file_out.wav resample -ql

or if you want a gsm:
# sox foo.wav -r 8000 -c1 foo.gsm resample -ql

Monday, June 7, 2010

Install mpg123 on Linux

# cd /usr/src
# wget http://sourceforge.net/projects/mpg123/files/mpg123/1.9.1/mpg123-1.9.1.tar.bz2/download
# tar -xjvf mpg123-1.9.1.tar.bz2
# cd /usr/src/mpg123-1.9.1
# make clean
# ./configure
# make
# make install

Now you can yum install Asterisk 1.6.x

Just follow the steps mentioned here.

Checked. Just takes 5 mins for the entire process.