Install G729 codec and license on Elastix 2.x
Assuming we are using the 64-bit version of Asterisk 1.8.x
1) First, acquire a G729 codec license from Digium: http://store.digium.com/productview.php?product_code=G729CODEC
2) Download the codec (at the time of this writing)
– cd /usr/src
– wget http://downloads.digium.com/pub/telephony/codec_g729/asterisk-1.8.4/x86-64/codec_g729a-1.8.4_3.1.5-nocona_64.tar.gz
– tar -xf codec_g729a_v34_nocona.tar.gz
– cd codec_g729a_v34_nocona
– cp codec_g729a.so /usr/lib64/asterisk/modules/
– cd ..
3) Register the codec
– wget http://downloads.digium.com/pub/register/x86-64/register
– chmod +x register
– ./register
The messages will be like those shown below:
Digium Product Registration – Version 3.0.3
Copyright (C) 2004-2007, Digium, Inc.
Use the ‘-l’ option to see license information for software
included in this program.
Please select a category
1 – Digium Products
2 – Cepstral Products
0 – Quit
Your Choice: 1
You selected 1, Digium Products
Please select a product
1 – Asterisk Business Edition
2 – Asterisk Business Edition C Expansion
3 – G.729 Codecc
4 – High Performance Echo Can
0 – Quit
Your Choice: 3
You selected 3, G.729 Codecc
Please enter your Key-ID: G729-XXXXXXXX
Product available to be registered.
Do you want to register this key now(y/n) y
4) === You will be shown with the Digium EULA 012620122 ==== that you have to accept
Do you accept this licensing agreement (y/n)? y
You will be prompted for the following fields:
First Name: Last Name: Company: Address 1: Address 2: City: State:
Postal Code: Country (2-Letter Country Code): Phone:
Email:
5) At the end you will receive a notification that the license has been successfully written to file:
Wrote license to /var/lib/asterisk/licenses/G729-XXXXXXXXXXXX.lic
6) Restart Asterisk: service asterisk stop /// service asterisk start
7) Use the following command to show the license: g729 show licenses
0/0 encoders/decoders of 1 licensed channels are currently in use
Licenses Found:
File: G729-XXXXXXXX.lic — Key: G729-XXXXXXXXXXXXXX — Host-ID: xxx:xx:xx:xx:xx:xx — Channels: 1 (Expires: 2032-11-11) (OK)