G729
G729 and G723 Codec Install
Before downloading the codec module you need to verify what your processor type is, as to get a compatible compiled codec.
From the Linux command type in:
cat /proc/cpuinfo
Look specifically at the model name and the flags. The following is an example of the process that I am using.
Processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 8 model name : Pentium III (Coppermine) stepping : 3 cpu MHz : 648.110 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 mtrr pge mca cmov pat pse36 mmx fxsr sse bogomips : 1297.41
From this information we can see that it is a Pentium III processor and it is using sse. These are the 2 bits of required information we need. If you don’t see sse in your flags settings then the file you need must contain the words no-sse
Now go to http://asterisk.hosting.lv/ and select the appropriate Asterisk version.
The files are named as codec_g72x-???-pentiumx.so
So from the information above to obtain the G729 codec we need to get the file codec_g729-gcc-pentium3.so and for the G723 codec we need to get the file g723-gcc-pentium3.so
The gcc represents the way the module was compiled. This is your most likely choice. To view the different type of compiled version look at this file http://kvin.lv/pub/Linux/Asterisk/README
Now that we know what file we need you can now download the appropriate file.
Change folders to /usr/lib/asterisk/modules
cd /usr/lib/asterisk/modules
Download the required file(s)
For the G729 codec with a Pentium 4 sse chip:
wget http://asterisk.hosting.lv/bin/codec_g729-ast18-icc-glibc-pentium4.so
For the G723 codec with a Pentium 4 sse chip:
wget http://asterisk.hosting.lv/bin/codec_g723-ast18-icc-glibc-pentium4.so
Restart asterisk and you are done.
If Asterisk does not start then you may need to try icc files instead of gcc.