[asterisk-users] g729 open source codec and sample size

Bruce McAlister bruce.mcalister at blueface.ie
Tue Jun 10 17:28:30 CDT 2008



Jared Smith wrote:
> The issue (at least from what I read in the
> archives) seems to point to math libraries not being found in the proper
> location.  Maybe there are some Solaris folks lurking on the list that
> can shed some light -- I'm pretty worthless when it comes to Solaris.
> Are you still trying on OpenSolaris, and is there anything different
> about the way it handles dynamic linking?
> 

I forgot to mention, in my previous email, that the math libraries on 
our boxes reside in the /lib directory, which is where the Solaris 
installer installs them by default.

Looking at my last attempt to try and get this going (which, 
co-incidently, is the same system that Jason helped me with) I checked 
to see if the codec has any unresolved libraries:

ldd ./codec_g729a.so
         libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1
         libc.so.1 =>     /lib/libc.so.1
         libm.so.2 =>     /lib/libm.so.2

The math libraries appear to be found OK on the box. The license is 
located in :

/var/lib/asterisk/licenses

The license file is in the directory:

-rw-r--r--   1 root     root         308 Aug 27  2007 G729-39F0ABB3.lic

However, every time I try to load the codec, I get the following in the 
asterisk console:

codec_g726.so => (ITU G.726-32kbps G726 Transcoder)
[Jun 10 23:16:40] NOTICE[2673]: codec_g729.c:403 load_module: G.729 
transcoding module version 32, Copyright (C) 1999-2007 Digium, Inc.
[Jun 10 23:16:40] NOTICE[2673]: codec_g729.c:407 load_module: This 
module is supplied under a commercial license granted by Digium, Inc.
[Jun 10 23:16:40] NOTICE[2673]: codec_g729.c:408 load_module: Please see 
the full license text supplied by the accompanying
[Jun 10 23:16:40] NOTICE[2673]: codec_g729.c:409 load_module: "register" 
utility, or ask for a copy from Digium.
[Jun 10 23:16:40] NOTICE[2673]: codec_g729.c:410 load_module: This 
product includes software developed by the OpenSSL Project
[Jun 10 23:16:40] NOTICE[2673]: codec_g729.c:411 load_module: for use in 
the OpenSSL Toolkit. (http://www.openssl.org/)
[Jun 10 23:16:40] NOTICE[2673]: codec_g729.c:412 load_module: Copyright 
(C) 1998-2006 The OpenSSL Project

[Jun 10 23:16:40] WARNING[2673]: codec_g729.c:420 load_module: Failed to 
initialize G.729 copy protection!
codec_g729a.so => (Annex A/B (floating point) G.729 Codec (optimized for 
i386))

In this case I am using asterisk v1.4.13, however, I have tried this 
with asterisk versions:

1.2.17 - 29
1.4.13 - 18

The codec versions I have tried are the i386 32-bit below:

unsupported v32
unsupported v33
unsupported trunk v33

I cannot seem to locate version 34 for Solaris on the download site 
which is apparently the latest version which I have not tried as of yet.

When I built asterisk I changed the directory locations to install 
everything in /opt/asterisk as apposed to spread over multiple 
directories. This would be the ideal case for us. However, when trying 
to get it to work as expected, I built asterisk using the default 
install directories to rule out any weirdness I may have caused by 
modifying the make file to install to a single top level directory.

I've also asked the guys at SolarisVoIP some time ago to see if they had 
got G729 going, and as far as I am aware, they have not been able to get 
the codec working either on their Solaris systems. There are multiple 
posts on that mailing list where people mention large scale rollouts on 
Solaris being held back because they are unable to get the G729 codec 
operational under Solaris.

I am not alone :)

Any suggestions tips/tricks that you may be able to shed on this issue 
would be *greatly* appreciated.

Thanks
Bruce



More information about the asterisk-users mailing list