Difference between revisions of "G723/G729 Codec installation"
(New page: '''NOTE: Remember that these codecs can be used for testing or educational purposes only. They are not free and license fees applies. See: http://www.voip-info.org/wiki-Asterisk+G.729+Lice...) |
|||
Line 1: | Line 1: | ||
'''NOTE: Remember that these codecs can be used for testing or educational purposes only. They are not free and license fees applies. See: http://www.voip-info.org/wiki-Asterisk+G.729+Licensing''' | '''NOTE: Remember that these codecs can be used for testing or educational purposes only. They are not free and license fees applies. See: http://www.voip-info.org/wiki-Asterisk+G.729+Licensing''' | ||
First of all you need to know your CPU type. Do: | |||
cat /proc/cpuinfo | |||
It will show CPU info and you will see a lot of info. Most crucial is: | |||
model name : Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz | |||
NOTE: this will vary on different servers, but from this line you can see what kind of CPU is on this particular machine. | |||
Here as example we see that we have '''Intel(R) Core(TM)2 Duo CPU'''. | |||
Then we need to know if our server is x86_64. For that we do: | |||
uname -a | |||
And we see that it is: | |||
Linux xxxx #1 SMP Fri Nov 30 00:45:55 EST 2007 x86_64 x86_64 x86_64 GNU/Linux | |||
Now go to: http://kvin.lv/pub/Linux/Asterisk/ and from the section: Asterisk 1.4 (if you use Asterisk 1.4) select the most appropriate codec. | |||
For our example CPU we will choose: | |||
codec_g723-ast14-gcc4-glibc-x86_64-pentium4.so | |||
codec_g729-ast14-gcc4-glibc-x86_64-pentium4.so | |||
Now download these files to your server. Rename them to: | |||
codec_g723.so | |||
codec_g729.so | |||
CHMOD both of them to 777: | |||
chmod 777 codec_g72*.so | |||
And copy to Asterisk modules: | |||
cp codec_g72*.so /usr/lib/asterisk/modules | |||
Restart Asterisk and execute in CLI: | |||
show translation | |||
It should show something like this: |
Revision as of 08:05, 10 December 2007
NOTE: Remember that these codecs can be used for testing or educational purposes only. They are not free and license fees applies. See: http://www.voip-info.org/wiki-Asterisk+G.729+Licensing
First of all you need to know your CPU type. Do:
cat /proc/cpuinfo
It will show CPU info and you will see a lot of info. Most crucial is:
model name : Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz
NOTE: this will vary on different servers, but from this line you can see what kind of CPU is on this particular machine.
Here as example we see that we have Intel(R) Core(TM)2 Duo CPU.
Then we need to know if our server is x86_64. For that we do:
uname -a
And we see that it is:
Linux xxxx #1 SMP Fri Nov 30 00:45:55 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
Now go to: http://kvin.lv/pub/Linux/Asterisk/ and from the section: Asterisk 1.4 (if you use Asterisk 1.4) select the most appropriate codec.
For our example CPU we will choose:
codec_g723-ast14-gcc4-glibc-x86_64-pentium4.so codec_g729-ast14-gcc4-glibc-x86_64-pentium4.so
Now download these files to your server. Rename them to:
codec_g723.so codec_g729.so
CHMOD both of them to 777:
chmod 777 codec_g72*.so
And copy to Asterisk modules:
cp codec_g72*.so /usr/lib/asterisk/modules
Restart Asterisk and execute in CLI:
show translation
It should show something like this: