how to install Free g729 codec in Asterisk vicidial

TOPIC: Free G729 Codec installation in Asterisk

    In this article you will learn how to install Free G729 codec in Asterisk based dialers and PBX like vicidial, Goautodial, Freepbx, Elastix, Issabel, Vitalpbx. The Free g729 codec is available from the asterisk.hosting.lv website.

    Apart from Free G729 codec, I do recommend to use the official G729 codec provided by digium or sangoma either software version or hardware g729 cards.


free g729 codec installation in asterisk
free g729 codec installation in asterisk


What is CODEC ?

    A Codec is a technical term for the following variations, which essentially mean the same thing: compression – decompression / compressor – decompressor / Code Decode.
A codec is a hardware- or software-based process that compresses and decompresses large amounts of data's like audio files in VOIP.

Checkout my vicidial scratch install document

G729 vs G711

    G.729 and G.711 are two different codecs used by mainstream voice-over-internet-protocol (VoIP) systems that transmit phone calls as data over the internet. G.711 offers better audio quality,but requires more bandwidth. G.729, on the other hand, requires less bandwidth, but call quality can suffer
Follow the below steps to install the proper G729 codec for asterisks

Bandwidth of G.729 vs G.711?

    On average, a call made over G.729 consumed about 8 Kbps of bandwidth per call because it compresses the data being transmitted over the internet. In comparison, G.711 uses 64 Kbps for its uncompressed call data.

Why we need G729 in asterisk

1.Less bandwidth consumption.
2.If VOIP provider only support G729 codec.
3.User dialing via low speed internet.

How to install Free G729 codec?

  OPTION 1:
  •  Install using the automated Script provided by vicidial, download from vicidial repo download.vicidial.com.
           download.vicidial.com/optional-apps/codec-install.sh

  OPTION 2:
  • install manually based on asterisk version ,OS bit size , and CPU vendor type
          download from asterisk.hosting.lv website.

OPTION 1: Automated Install g729 with vicidial script

If you are using Vicibox ,then just type codec-install to install g729 codec automatically.

For all other asterisk servers  (up to asterisk version 16) follow below steps.  

wget http://download.vicidial.com/optional-apps/codec-install.sh
chmod 777 codec-install.sh
./codec-install.sh

OPTION 2: Manual Install G729 codec

The Free G729 codec for each asterisk versions available from asterisk hosting


Before Downloading the codec you need to Know below details 
1. 32 bit or 64 bit OS
2. asterisk version
3. server type like: intel, amd
   Command to Check OS BIT type

uname -a

if output shows i386 then its 32bit
if outout shows x86 then its 64bit
  Command to Check asterisk Version

asterisk -rx "core show version"
  Command to Check server Processor Type
cat /proc/cpuinfo

As of writing this blog article my asterisk verision is 1.8, 64bit


  Asterisk 1.8 32 bit intel machine 

cd /usr/src
wget https://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 https://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 https://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"

Asterisk Command to Check G729 status.

asterisk -rx "core show translation"

output's
23 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726 g72
 g723    -   -    -    -        -     -    -     -    -     -    -    -    -
 gsm    -   -    2    2        2     2    1     2    4     -    -    2    -
 ulaw    -   2    -    1        2     2    1     2    4     -    -    2    -
 alaw    -   2    1    -        2     2    1     2    4     -    -    2    -
 g726aal2    -   2    2    2        -     2    1     2    4     -    -    2    -
 adpcm    -   2    2    2        2     -    1     2    4     -    -    2    -
 slin    -   1    1    1        1     1    -     1    3     -    -    1    -
  lpc10    -   2    2    2        2     2    1     -    4     -    -    2    -
 g729    -   2    2    2        2     2    1     2    -     -    -    2    - 

Conclusion:

In this article you learnt how to install free g729 codec in asterisk, Apart from G729 there are other codecs which can be used ,like G711a , G711u, GSM, G723, slin etc.
For professional support reach out me on skype telegram id: striker24x7
Next Post Previous Post
2 Comments
  • Unknown
    Unknown February 26, 2022 at 3:51 PM

    how can i get goautodial usb installer

    • gopi baskar
      gopi baskar February 26, 2022 at 4:11 PM

      download goautodial iso and use any iso to usb maker software.

Add Comment
comment url