Installing Digium’s g.729 codec for Asterisk on an OpenVZ VPS requires an Asterisk friendly VPS provider. This is because the installation routine relies on there being an ‘eth0’ device on the server. This is not normally the case with OpenVZ where the network device is called venet0.
An ‘eth0’ device can be created on the VPS by running the following command (this is done on the OpenVZ server) –
(see here for more information – http://wiki.openvz.org/Asterisk_G729)
replacing $VEID with the VPS ID. This doesn’t rename the venet0 device but creates a virtual eth0 device enabling the registration procedure to work
The following is all done on the VPS. The procedure and file names will vary depending on the architecture of the VPS server.
Download and run the Digium register tool –
Follow the menu options and select the G.729 codec entering all of your details.
Download the benchmarking tool. This will run tests on your system and recommend which binary you should download –
These were my results –
Download the recommended binary and copy it to the correct location –
Now restart Asterisk (obviously any calls in progress will be dropped!) –
Now connect to the Asterisk console again and you should be able to check that your license was successfully installed –
You can also check which codecs can be translated. Your system can translate between codecs that have a number where the rows/columns meet.