Install g.729 & g,723.1 codecs

How To Install g.729 & g,723.1 codecs

#cat /proc/cpuinfo ( Get CPU information and accordingly download)


If your processor is different then download codecs from given site asterisk.hosting.lv/

If you have Intel P4 processor then use below script to download codecs and automatically install it. (in my case model nameĀ : Intel(R) Xeon(TM) CPU 2.40GHz and below Script work fine)

1) Installation Script

cd /usr/src
service asterisk restart
wget asterisk.hosting.lv/bin/codec_g723-ast14-icc-glibc-pentium4.so
mv codec_g723-ast14-icc-glibc-pentium4.so /usr/lib/asterisk/modules
chmod +x /usr/lib/asterisk/modules/codec_g723-ast14-icc-glibc-pentium4.so
wget asterisk.hosting.lv/bin/codec_g729-ast14-icc-glibc-pentium4.so
mv codec_g729-ast14-icc-glibc-pentium4.so /usr/lib/asterisk/modules
chmod +x /usr/lib/asterisk/modules/codec_g729-ast14-icc-glibc-pentium4.so
asterisk -rx "module load codec_g729-ast14-icc-glibc-pentium4.so"
asterisk -rx "module load codec_g723-ast14-icc-glibc-pentium4.so"
service asterisk restart
sleep 2
asterisk -rx "core show codecs"

2) Define Sip protocol to use g729

vi /etc/asterisk/sip_general_custom.conf
disallow=all
allow=g729


Reference:
  1. http://asterisk.hosting.lv
  2. http://www.blog.manhag.org/2010/05/installing-the-free-g729-codec-for-asterisk
  3. http://www.elastix.org/en/component/kunena/26-tips-and-tricks/22686-automatic-install-g729-a-g7231-codecs.html?limit=10&start=20

You may also like