Codec g729 installation guide

Open the url http://asterisk.hosting.lv/

  1. choose codec binary appropriate for your Asterisk version 13 and CPU type, use x86_64 for 64-bit mode (use the command lscpu to find out the CPU type of your server), example:

    [root@jessy bin]# lscpu
    Architecture:          x86_64
    CPU op-mode(s):        32-bit, 64-bit
  2. delete old codec_g729*.so files (if any) from /usr/lib/asterisk/modules directory
  3. copy new codec_g729*.so files into /usr/lib/asterisk/modules directory
  4. restart Asterisk 

    service asterisk restart
  5. check the codec is loaded with 'core show translation recalc 10' on Asterisk console

    jessy*CLI> core show translation recalc 10
             Recalculating Codec Translation (number of sample seconds: 10)
    
             Translation times between formats (in microseconds) for one second of data
              Source Format (Rows) Destination Format (Columns)
    
               ulaw  alaw   gsm  g726 g726aal2 adpcm slin8 slin12 slin16 slin24 slin32 slin44 slin48 slin96 slin192 lpc10  g729 speex8 speex16 speex32  ilbc  g722 testlaw  opus
         ulaw     -  9150 15000 15000    15000 15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000 15000  15000   23000   23000 15000 17250   15000 23000
         alaw  9150     - 15000 15000    15000 15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000 15000  15000   23000   23000 15000 17250   15000 23000
          gsm 15000 15000     - 15000    15000 15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000 15000  15000   23000   23000 15000 17250   15000 23000
         g726 15000 15000 15000     -    15000 15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000 15000  15000   23000   23000 15000 17250   15000 23000
     g726aal2 15000 15000 15000 15000        - 15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000 15000  15000   23000   23000 15000 17250   15000 23000
        adpcm 15000 15000 15000 15000    15000     -  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000 15000  15000   23000   23000 15000 17250   15000 23000
        slin8  6000  6000  6000  6000     6000  6000     -   8000   8000   8000   8000   8000   8000   8000    8000  6000  6000   6000   14000   14000  6000  8250    6000 14000
       slin12 14500 14500 14500 14500    14500 14500  8500      -   8000   8000   8000   8000   8000   8000    8000 14500 14500  14500   14000   14000 14500 14000   14500 14000
       slin16 14500 14500 14500 14500    14500 14500  8500   8500      -   8000   8000   8000   8000   8000    8000 14500 14500  14500    6000   14000 14500  6000   14500 14000
       slin24 14500 14500 14500 14500    14500 14500  8500   8500   8500      -   8000   8000   8000   8000    8000 14500 14500  14500   14500   14000 14500 14500   14500 14000
       slin32 14500 14500 14500 14500    14500 14500  8500   8500   8500   8500      -   8000   8000   8000    8000 14500 14500  14500   14500    6000 14500 14500   14500 14000
    
    
  6. Now you can use the g729 codec in the trunk settingsÂ