Skip to content

Latest commit

 

History

History
79 lines (51 loc) · 1.55 KB

File metadata and controls

79 lines (51 loc) · 1.55 KB

G729

G.729 is a favorite codec. It's consumed small bandwidth and voice quality relatively good. But, it's not free.

Download

Download g.729 source and binaries, for free, from asterisk.hosting.lv

Download the file depending on your server architecture and Asterisk version.

Copy as codec_g729.so to /usr/lib/asterisk/modules/

For example we can download this file on Asterisk server.

For Asterisk 1.8, Pentium 4 or compatible:

cd /root
wget -c http://asterisk.hosting.lv/bin/codec_g729-ast18-gcc4-glibc-pentium4.so

For Asterisk 11, Pentium 4 or compatible:

cd /root
wget -c http://asterisk.hosting.lv/bin/codec_g729-ast110-gcc4-glibc-pentium4.so

Copy the file to /usr/lib/asterisk/modules as code_g729.so, for example:

cp codec_g729-ast18-gcc4-glibc-pentium4.so /usr/lib/asterisk/modules/codec_g729.so

Load G729

Load codec_g729.so:

asterisk -rx 'module load codec_g729'

Check the status in Asterisk:

asterisk -rx 'core show translation'
asterisk -rx 'core show translation paths g729'

The line for g729 should be filled with numbers, and the path shown.

Using G729

To use it for call we need to set it in SIP accounts:

disallow=all
allow=g729

to squeeze more bandwidth, you may try to set bigger sampling rate, 40ms or 60ms:

disallow=all
allow=g729:40

or

disallow=all
allow=g729:60

Compile G729

Should you need to compile the binary, you may read about it here: