Installation Steps ;
1. Find your CPU architecture with following command;
cat /proc/cpuinfo
2. Go to http://asterisk.hosting.lv/ and choose correct Asterisk version and CPU version.
3. Navigate the codec directory;
cd /usr/lib/asterisk/modules
4. Download proper codec;
wget http://asterisk.hosting.lv/bin/codec_g729-ast14-gcc4-glibc-pentium.so
5. Change file permissions as 755
chmod 755 codec_g729-ast14-gcc4-glibc-pentium.so
6. Rename codec file name ;
mv codec_g729-ast14-gcc4-glibc-pentium.so codec_g729.so
7. Add g729 codec support over the Asterisk SIP Settings on Freepbx Tools menu.
8. Run the following command to restart Asterisk service.
service asterisk restart
9. Check codec installation;
asterisk -rv
core show translation
If you installed the codecs correctly, you must see some numbers next to the g729 codec row.
Tested CPU types;
Intel Pentium M 1.7Ghz --> codec_g729_ast16_gcc4_glibc-pentium-m.so
Intel Xeon CPU 3065 2.33Ghz (HP ML110 G4) --> codec_g729_ast16_gcc4_glibc-core2.so
Intel Xeon CPU 2.80Ghz (HP ML150G2) --> codec_g729_ast16_gcc4_glibc-pentium4.so
good luck