Posts tagged: g729 on asterisk trixbox

g729 on asterisk trixbox

By , August 12, 2010 7:35 PM

find your CPU architecture
cat /proc/cpuinfo

Goto
http://asterisk.hosting.lv/
DL the right one
# choose codec binary appropriate for your Asterisk version and CPU type, use x86_64 for 64-bit mode, scroll to the end of the list for FreeBSD binaries
# delete old codec_g729/723*.so files (if any) from /usr/lib/asterisk/modules directory
# copy new codec_g729/723*.so files into /usr/lib/asterisk/modules directory
# restart Asterisk

Then connect to the Asterisk console with:
asterisk -r
and type (adjust accordingly):
load codec_g729-ast14-gcc4-glibc-core2.so

You should then see something like:
Loaded /usr/lib/asterisk/modules/codec_g729-ast14-gcc4-glibc-core2.so => (G729/PCM16 (signed linear) Codec Translator, based on IPP)
== Registered translator ‘g729tolin’ from format g729 to slin, cost 1
== Registered translator ‘lintog729’ from format slin to g729, cost 6

Exit from the console with:
quit

Then use nano to edit /etc/asterisk/sip.conf and just below:
allow=ulaw
add:
allow=gsm
allow=g729

# check the codec is loaded with ‘core show translation recalc 10’ on Asterisk console (‘show translation’ in Asterisk 1.2)
# G.723.1 send rate is configured in Asterisk codecs.conf file (Linux Asterisk 1.2, 1.4, 1.6, TRUNK and Callweaver, FreeBSD 7.x Asterisk 1.4 binaries only):

other cool linux commands

cat /proc/cpuinfo
cat /proc/meminfo
dmesg
lspci

Thomas Challenger Thomas Challenger