In order to manually install g729 codec please follow these steps:
Log in to the system shell as a root user, navigate to directory /opt/pbxware/pw/usr/bin and create symbolic links:
cd /opt/pbxware/pw/usr/bin
ln -s ../../bin/cat more
ln -s ../../bin/cat less
Navigate to the Asterisk modules directory by executing command:
cd /opt/pbxware/pw/usr/lib/asterisk/modules/
.
To download G729 binary please execute commands corresponding to your PBXware version
.
Download g729 binary:
wget http://asterisk.hosting.lv/bin/codec_g729-ast130-gcc4-glibc2.2-x86_64-core2-sse4.so
Rename downloaded file to codec_g729a.so:
mv codec_g729-ast130-gcc4-glibc2.2-x86_64-core2-sse4.so codec_g729a.so
Once done, skip to installation section.
.
Download g729 binary:
wget http://asterisk.hosting.lv/bin/codec_g729-ast160-gcc4-glibc-x86_64-pentium4.so
Rename downloaded file to codec_g729a.so:
mv codec_g729-ast160-gcc4-glibc-x86_64-pentium4.so codec_g729a.so
.
Download g729 binary:
wget http://asterisk.hosting.lv/bin/codec_g729-ast180-gcc4-glibc-x86_64-pentium4.so
Rename downloaded file to codec_g729a.so:
mv codec_g729-ast180-gcc4-glibc-x86_64-pentium4.so codec_g729a.so
.
To change the file ownership, run the following commands:
chmod 755 codec_g729a.so
chown 555:555 codec_g729a.so
Execute this command from PBXware shell, to load G729 codec, without entering Asterisk CLI:
asterisk -rx 'module load codec_g729a.so'
To check if codec was loaded correctly execute these commands in PBXware shell, without entering Asterisk CLI:
asterisk -rx 'core show translation' | grep g729
Output should look something like this:
. ulaw alaw gsm g726 g726aal2 adpcm slin8 slin12 slin16 slin24 slin32 slin44 slin48 slin96 slin192 lpc10 g729 ilbc g722 testlaw opus
g729 15000 15000 15000 15000 15000 15000 9000 17000 17000 17000 17000 17000 17000 17000 17000 15000 - 15000 17250 15000 15000
Now execute command:
asterisk -rx 'core show codecs'
Output should look something like this:
Parsing /etc/asterisk/asterisk.conf
Disclaimer: this command is for informational purposes only.
It does not indicate anything about your configuration.
ID TYPE NAME FORMAT DESCRIPTION
------------------------------------------------------------------------------------------------
31 image png png (PNG Image)
6 audio g726 g726 (G.726 RFC3551)
4 audio alaw alaw (G.711 a-law)
2 audio g723 g723 (G.723.1)
... ... ...
19 audio g729 g729 (G.729A)
... ... ...
Asterisk ending (0).
If procedure was completed successfully you should now be able to use g729 as one of your codecs.