Follow the below steps to install the proper G729 codec for asterisks
You can download the Free g729 from the below link
http://asterisk.hosting.lv/
Before Downloading the codec you need to check below details
1. 32 bit or 64 bit
2. asterisk version
3. server type like: intel, amd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Command to check 32bit or 64 bit os
uname -a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Command to check asterisk version
asterisk -rx \\"core show version\\"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Command to check the server type
cat /proc/cpuinfo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
As of writting this blog mine is asterisk 1.8
Asterisk 1.8 32 bit intel machine
cd /usr/src
wget http://asterisk.hosting.lv/bin/codec_g729-ast18-gcc4-glibc-pentium4.so
cp codec_g729-ast18-gcc4-glibc-pentium4.so /usr/lib/asterisk/modules/codec_g729.so
chmod +x /usr/lib/asterisk/modules/codec_g729.so
asterisk -rc \\\"module load codec_g729.so\\\"
Asterisk 1.8 64 bit intel machine
cd /usr/src wget http://asterisk.hosting.lv/bin/codec_g729-ast18-gcc4-glibc-x86_64-pentium4.so
cp codec_g729-ast18-gcc4-glibc-x86_64-pentium4.so
/usr/lib64/asterisk/modules/codec_g729.so chmod +x
/usr/lib64/asterisk/modules/codec_g729.so asterisk -rc \\"module load
codec_g729.so\\"
Asterisk 1.8 AMD machines
cd /usr/src
wget http://asterisk.hosting.lv/bin/codec_g729-ast18-gcc4-glibc-athlon-sse.so
cp codec_g729-ast18-gcc4-glibc-athlon-sse.so /usr/lib/asterisk/modules/codec_g729.so
chmod +x /usr/lib/asterisk/modules/codec_g729.so
asterisk -rc \\\"module load codec_g729.so\\\"
Now check the whether codec is loaded
asterisk -rx \\"core show translation\\"