Install codec g.729 & g.723 for asterisk
DISCLAIMER: You might have to pay royalty fees to the G.729/723.1 patent holders for using their algorithm.
for CPU info run cat /proc/cpuinfo
1. Go to http://asterisk.hosting.lv/ download codec for you Asterisk "Asterisk version + CPU"
2. Copy codec to /usr/lib/asterisk/modules directory and change files "755"
3. Reload asterisk
#asterisk -rx "stop now"
#amportal stop
#amportal start
4. Verify under Asterisk cli > core show translation
5. Enable G729 and G723 codec on both device, soft-Phone and you PBX
Example
I have P3 CPU, i download and copy both codec to my Elastix 1.6 "Asterisk 1.4"
#cp codec_g723-ast14-gcc4-glibc-pentium3.so /usr/lib/asterisk/modules
#cp codec_g729-ast14-gcc4-glibc-pentium3.so /usr/lib/asterisk/modules
#chmod 0755 /usr/lib/asterisk/modules/codec_g723-ast14-gcc4-glibc-pentium3.so
#chmod 0755 /usr/lib/asterisk/modules/codec_g729-ast14-gcc4-glibc-pentium3.so
and reload asterisk
#asterisk -rx "stop now"
#amportal stop
#amportal start
To verify run Asterisk cli > core show translation
Translation times between formats (in milliseconds) for one second of data
Source Format (Rows) Destination Format (Columns)
g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726 g722
g723 - 7 2 2 5 2 1 11 11 46 - 5 2
gsm 17 - 3 3 6 3 2 12 12 47 - 6 3
ulaw 16 7 - 1 5 2 1 11 11 46 - 5 2
alaw 16 7 1 - 5 2 1 11 11 46 - 5 2
g726aal2 19 10 5 5 - 5 4 14 14 49 - 8 5
adpcm 16 7 2 2 5 - 1 11 11 46 - 5 2
slin 15 6 1 1 4 1 - 10 10 45 - 4 1
lpc10 19 10 5 5 8 5 4 - 14 49 - 8 5
g729 18 9 4 4 7 4 3 13 - 48 - 7 4
speex 21 12 7 7 10 7 6 16 16 - - 10 7
ilbc - - - - - - - - - - - - -
g726 19 10 5 5 8 5 4 14 14 49 - - 5
g722 18 9 4 4 7 4 3 13 13 48 - 7 -
Done
for CPU info run cat /proc/cpuinfo
1. Go to http://asterisk.hosting.lv/ download codec for you Asterisk "Asterisk version + CPU"
2. Copy codec to /usr/lib/asterisk/modules directory and change files "755"
3. Reload asterisk
#asterisk -rx "stop now"
#amportal stop
#amportal start
4. Verify under Asterisk cli > core show translation
5. Enable G729 and G723 codec on both device, soft-Phone and you PBX
Example
I have P3 CPU, i download and copy both codec to my Elastix 1.6 "Asterisk 1.4"
#cp codec_g723-ast14-gcc4-glibc-pentium3.so /usr/lib/asterisk/modules
#cp codec_g729-ast14-gcc4-glibc-pentium3.so /usr/lib/asterisk/modules
#chmod 0755 /usr/lib/asterisk/modules/codec_g723-ast14-gcc4-glibc-pentium3.so
#chmod 0755 /usr/lib/asterisk/modules/codec_g729-ast14-gcc4-glibc-pentium3.so
and reload asterisk
#asterisk -rx "stop now"
#amportal stop
#amportal start
To verify run Asterisk cli > core show translation
Translation times between formats (in milliseconds) for one second of data
Source Format (Rows) Destination Format (Columns)
g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726 g722
g723 - 7 2 2 5 2 1 11 11 46 - 5 2
gsm 17 - 3 3 6 3 2 12 12 47 - 6 3
ulaw 16 7 - 1 5 2 1 11 11 46 - 5 2
alaw 16 7 1 - 5 2 1 11 11 46 - 5 2
g726aal2 19 10 5 5 - 5 4 14 14 49 - 8 5
adpcm 16 7 2 2 5 - 1 11 11 46 - 5 2
slin 15 6 1 1 4 1 - 10 10 45 - 4 1
lpc10 19 10 5 5 8 5 4 - 14 49 - 8 5
g729 18 9 4 4 7 4 3 13 - 48 - 7 4
speex 21 12 7 7 10 7 6 16 16 - - 10 7
ilbc - - - - - - - - - - - - -
g726 19 10 5 5 8 5 4 14 14 49 - - 5
g722 18 9 4 4 7 4 3 13 13 48 - 7 -
Done
Comments
Post a Comment