Download the appropriate codec from the below link
http://asterisk.hosting.lv/
Make sure you have chosen right processor [32 /64]and its bit
Check your asterisk version
— asterisk -rx “core show version”
check whether 32bit or 64 bit —
commands to check your processor:
uname -a
For Asterisk verssion 1.2 with intel Xeon or pentium 4 equivalent:
wget http://asterisk.hosting.lv/bin12/codec_g729-ast12-gcc4-glibc-pentium4.so
chmod +x codec_g729-ast12-gcc4-glibc-pentium4.so
For asterisk 1.4 version and 32 bit Pentium based server (like intel xeon ,p4, dualcore core2duo0
http://asterisk.hosting.lv/bin/codec_g729-ast14-gcc4-glibc-pentium4.so
For asterisk 1.4 and 64bit os (intel xeon all pentium )
http://asterisk.hosting.lv/bin/codec_g729-ast14-gcc4-glibc-x86_64-pentium4.so
For asterisk 1.4 AMD athlon machines
http://asterisk.hosting.lv/bin/codec_g729-ast14-gcc4-glibc-athlon-sse.so
In root shell type
cd /usr/lib/asterisk/modules
wget http://asterisk.hosting.lv/bin/codec_g729-ast14-gcc4-glibc-pentium4.soIf you have any previous verssion of Codec g729 then
mv codec_g729-ast14-gcc4-glibc-pentium4.so codec_g729.so
Otherewise,
chmod +x codec_g729.so
asterisk -vvvvr
>module load codec_g729.so
now check whether the codec is loaded or not
>show translation