g729 freezes 1.8

Home » Asterisk Users » g729 freezes 1.8
Asterisk Users 5 Comments

Hi folks,

I was recently installing g729 support as usual (register, cp codec_g729 to
modules) and found out that the resulting asterisk instances freezes
whenever g729 commands are executed in the command line.

The registration process went OK and I can see the module being loaded by
asterisk:

[Apr 18 09:54:29] NOTICE[23775] codec_g729a.c: G.729A transcoding module
version 1.8.0_3.1.5, Copyright (C) 1999-2009 Digium, Inc.
[Apr 18 09:54:29] NOTICE[23775] codec_g729a.c: This module is supplied
under a commercial license granted by Digium, Inc.
[Apr 18 09:54:29] NOTICE[23775] codec_g729a.c: Please see the full license
text supplied by the accompanying
[Apr 18 09:54:29] NOTICE[23775] codec_g729a.c: “register” utility, or ask
for a copy from Digium.
[Apr 18 09:54:29] NOTICE[23775] codec_g729a.c: This product includes
software developed by the OpenSSL Project
[Apr 18 09:54:29] NOTICE[23775] codec_g729a.c: for use in the OpenSSL
Toolkit. (http://www.openssl.org/)
[Apr 18 09:54:29] NOTICE[23775] codec_g729a.c: Copyright (C) 1998-2006 The
OpenSSL Project

[Apr 18 09:54:29] VERBOSE[23775] manager.c: == Manager registered action
G729LicenseStatus
[Apr 18 09:54:29] VERBOSE[23775] manager.c: == Manager registered action
G729LicenseList
[Apr 18 09:54:29] VERBOSE[23775] codec_g729a.c: == Host-ID:
7e:f8:73:46:bf:58:23:8f:82:10:6d:e5:59:6f:90:04:a8:30:74:fe
[Apr 18 09:54:29] VERBOSE[23775] codec_g729a.c: == Found license
‘G729-ZNSEND59XW4H’ providing 25 channels
[Apr 18 09:54:29] VERBOSE[23775] codec_g729a.c: == Found total of 25
G.729 licenses

After I can, sometimes, execute g729 CLI commands:
*CLI> g729 show hostid
Host-ID: 7e:f8:73:46:bf:58:23:8f:82:10:6d:e5:59:6f:90:04:a8:30:74:fe

But no g729 seems to be loaded:
*CLI> core show translation
Translation times between formats (in microseconds) for one second
of data
Source Format (Rows) Destination Format (Columns)

g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex
ilbc g726 g722 siren7 siren14 slin16 g719 speex16 testlaw
g723 – – – – – – – – –
– – – – – – – – – –
gsm – – 2 2 – 2 1 2 – –
4001 – 2 – – 4003 – – 2
ulaw – 2 – 2 – 2 1 2 – –
4001 – 2 – – 4003 – – 2
alaw – 2 2 – – 2 1 2 – –
4001 – 2 – – 4003 – – 2
g726aal2 – – – – – – – – –
– – – – – – – – – –
adpcm – 2 2 2 – – 1 2 – –
4001 – 2 – – 4003 – – 2
slin – 1 1 1 – 1 – 1 – –
4000 – 1 – – 4002 – – 1
lpc10 – 2 2 2 – 2 1 – – –
4001 – 2 – – 4003 – – 2
g729 – – – – – – – – –
– – – – – – – – – –
speex – – – – – – – – –
– – – – – – – – – –
ilbc – 2 2 2 – 2 1 2 –
– – – 2 – – 4003 – – 2
g726 – – – – – – – – –
– – – – – – – – – –
g722 – 2 2 2 – 2 1 2 – –
4001 – – – – 4001 – – 2
siren7 – – – – – – – – –
– – – – – – – – – –
siren14 – – – – – – – – –
– – – – – – – – – –
slin16 – 3 3 3 – 3 2 3 – –
4002 – 1 – – – – – 3
g719 – – – – – – – – –
– – – – – – – – – –
speex16 – – – – – – – – –
– – – – – – – – – –
testlaw – 2 2 2 – 2 1 2 – –
4001 – 2 – – 4003 – – –

Whenever I try to execute g729 show licencese, the CLI freezes and, in a
few, asterisk itself freeezes:
*CLI> g729 show licenses
*CLI> core show translation
*CLI> core show translation

I’ve tried both 1.8.8.1 and 1.8.11.0 asterisk versions, and generic and
barcelona g729 binaries from
http://downloads.digium.com/pub/telephony/codec_g729/asterisk-1.8.0/x86-64/

Whenever I delete the codec_g729a.so module everything runs smoothly.

Is there any issue or incompatibility between 1.8 and g729?

Thank you very much in advance,
Samuel.

5 thoughts on - g729 freezes 1.8

  • Ah, well. It’s always worth a shot, though.

    It could still be a missing library; run `ldd` on the .so file(s), and make
    sure all needed libraries are installed.

  • The simplest route to solving this problem is to contact Digium’s
    support department; this is a Digium commercial product and you are
    entitled to technical support.

    The simple answer to your question is no, there are no known
    incompatibilities between Asterisk 1.8 and Digium’s G.729 codec modules
    (if there were, we’d fix them).

  • Just in case it helps:

    It turned out that from asterisk version 1.8.4 on, the g729 binaries are
    different from the previous versions so it was a version mismatch between
    the g729 (1.8.0_3.1.5) and asterisk (1.8.8 and higher).

    Thanks to the Digium support department that found out the issue.

    Samuel.