Download and execute the register utility to generate a valid license.
cd /root wget http://downloads.digium.com/pub/register/x86-64/registerChange the permissions of the /root/register file to r-x------.
chmod 500 /root/registerRun the register utility and follow the interactive instructions. The registration utility will prompt you for your G.729 license key.
/root/registerDownload and execute the benchg729 utility to determine the optimum build.
cd /root wget http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-1.0.8-x86_64 -O benchg729Change the permissions of the /root/benchg729 file to r-x------
chmod 500 /root/benchg729Run the benchg729 utility and record the build that it recommends should be used for your platform.
/root/benchg729Download and install the codec_g729 binary that is built for your platform from
http://downloads.digium.com/pub/telephony/codec_g729/asterisk-1.8.4/x86-64/ NOTE: Asterisk 1.8.23 requires binaries from exactly this download directory.
Extract downloaded file and copy codec_g729a.so to /var/lib/asterisk/modules.
Move original codec_g729.so to another directory for backup purposes.
Restart Asterisk and check if license is found:
Reiniciamos el servicio de Asteisk
service asterisk restart (Centos)
/etc/init.d/asterisk restart (Ubuntu)
asterisk -rvvvvvvvv *CLI> g729 show licenses 0/0 encoders/decoders of 26 licensed channels are currently in use Licenses Found: Key: G729-EXAMPLE1 -- Host-ID: ex:am:pl:e0:ex:am:pl:e0:ex:am:pl:e0:ex: am:pl:e0:ex:am:pl:e0 -- Channels: 2 (Expires: 2026-09-26) (OK) Key: G729-EXAMPLE2 -- Host-ID: ex:am:pl:e0:ex:am:pl:e0:ex:am:pl:e0:ex: am:pl:e0:ex:am:pl:e0 -- Channels: 24 (Expires: 2026-09-26) (OK)
[edit] Troubleshooting
[edit] If Asterisk crashes
If Asterisk crashes when it is restarted, the wrong version of the codec is installed. Remove codecs from /usr/lib/asterisk/modules and repeat all procedures with different - more appropriate - versions of the codecs. You can 'downgrade' your codec version, starting from: codec_g723-ast14-gcc4-glibc-pentium4-sse3.so and keep going down as far as codec_g723-ast14-gcc4-glibc-pentium4.so until it works. (This is just an example - for your server, codec versions may vary).[edit] Bad audio quality
If you experience bad audio quality, try downgrading your codec, as explained in previous paragraph.http://www.digium.com/en/products/software/g729-codec
No hay comentarios:
Publicar un comentario