iLBC doesn't work with Elastix 2.0

Joined
Feb 10, 2011
Messages
1
Points
0
It seems that compiling the iLBC codec with asterisk is very sensitive to which linux kernel asterisk headers are used, and it is hard to know which ones you have because of the way that the kernel-headers packages are named, versioned and placed, and consequently what this causes a yum update to do. Many of the kernel-headers packages have the same name, and info about the kernel that they belong with is only part of the package version info, so when you do a simple yum update, yum sees some kernel-headers packages for different kernel compilations as newer versions of the package that you currently have, and all of the packages overwrite one another into the same directory. Fixing this is a little tricky because you have to remove the new package without losing the packages that depend on it, and you have to trick/force yum to install just the one that you need. Even if, as in my case, you seem to have the right version of the headers package, look at the file /usr/include/asterisk/build.h , and you might find that it shows that it's for an asterisk built with a different kernel compilation.

Here is, if I remember it correctly, how I got a usable codec_ilbc.so file for an Elastix 2.0 64-bit system with a 2.6.18-194.3.1.el5 non-xen kernel

Code:
rpm -del --nodeps kernel-headers.x86_64
yum install --disablerepo="centosplus,elastix-beta" kernel-headers.x86_64
cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-1.6.2.10.tar.gz
tar -zxvf asterisk-1.6.2.10.tar.gz
cd  /usr/src/asterisk-1.6.2.10
cp  /usr/include/asterisk/*  include/asterisk
cp  /usr/include/asterisk.h  include
contrib/scripts/get_ilbc_source.sh
./configure
make menuselect   # select the ilbc codec
make
cp codecs/codec_ilbc.so /usr/lib64/asterisk/modules
 
Joined
Sep 8, 2007
Messages
1,785
Points
0
sorry men but ilbc is not kernel based or affected by any kernel...im dcap and user of asterisk since 2002 and i always used to compile asterisk by hand since the dark ages of 1.0 and never was kernel related...
maybe kernel path related if you use 64 or 32 bits because it compiles the chan in usr lib or usr lib64...right now re tested on latest .32.1 kernel and is the same download asterisk tarball upgrade kernel with yum and execute get_ilbc_source as always...all working ok and codec install and compile is correct...even on asterisk 1.8
 
Joined
Jun 12, 2007
Messages
297
Points
0
hi, process de compiled error.

[CC] codec_ilbc.c -> codec_ilbc.o
codec_ilbc.c:40:30: error: ilbc/iLBC_encode.h: No such file or directory
codec_ilbc.c:41:30: error: ilbc/iLBC_decode.h: No such file or directory
codec_ilbc.c:56: error: expected specifier-qualifier-list before âiLBC_Enc_Inst_tâ
codec_ilbc.c: In function âlintoilbc_newâ:
codec_ilbc.c:66: warning: implicit declaration of function âinitEncodeâ
codec_ilbc.c:66: error: âstruct ilbc_coder_pvtâ has no member named âencâ
codec_ilbc.c: In function âilbctolin_newâ:
codec_ilbc.c:75: warning: implicit declaration of function âinitDecodeâ
codec_ilbc.c:75: error: âstruct ilbc_coder_pvtâ has no member named âdecâ
codec_ilbc.c: In function âilbctolin_frameinâ:
codec_ilbc.c:113: warning: implicit declaration of function âiLBC_decodeâ
codec_ilbc.c:113: error: âstruct ilbc_coder_pvtâ has no member named âdecâ
codec_ilbc.c: In function âlintoilbc_frameinâ:
codec_ilbc.c:131: error: âstruct ilbc_coder_pvtâ has no member named âbufâ
codec_ilbc.c: In function âlintoilbc_frameoutâ:
codec_ilbc.c:152: error: âstruct ilbc_coder_pvtâ has no member named âbufâ
codec_ilbc.c:153: warning: implicit declaration of function âiLBC_encodeâ
codec_ilbc.c:153: error: âstruct ilbc_coder_pvtâ has no member named âencâ
codec_ilbc.c:162: error: âstruct ilbc_coder_pvtâ has no member named âbufâ
codec_ilbc.c:162: error: âstruct ilbc_coder_pvtâ has no member named âbufâ
make[1]: ***
Code:
 Error 1
make: *** [code] Error 2
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,990
Messages
131,103
Members
17,716
Latest member
Orbit114
Top