Compile problem for asterisk-addons-1.4 from branches

Hi,
I’ve downloaded via svn from branches asterisk-addons-1.4 but when I try to compile it I get this error (I use Debian/GNU Linux sarge/stable):

./configure --prefix=/usr
make clean
make



nemo:/usr/src/asterisk-1.4/asterisk-addons-1.4# make
make[1]: Entering directory /usr/src/asterisk-1.4/asterisk-addons-1.4/menuselect' make[2]: Entering directory/usr/src/asterisk-1.4/asterisk-addons-1.4/menuselect’
gcc -Wall -o menuselect.o -g -c -D_GNU_SOURCE menuselect.c
gcc -Wall -o menuselect_curses.o -g -c -D_GNU_SOURCE menuselect_curses.c
gcc -Wall -o strcompat.o -g -c -D_GNU_SOURCE strcompat.c
gcc -g -Wall -o menuselect menuselect.o menuselect_curses.o strcompat.o mxml/libmxml.a -lncurses
make[2]: Leaving directory /usr/src/asterisk-1.4/asterisk-addons-1.4/menuselect' make[1]: Leaving directory/usr/src/asterisk-1.4/asterisk-addons-1.4/menuselect’
make[1]: Entering directory /usr/src/asterisk-1.4/asterisk-addons-1.4' build_tools/mkdep -fPIC -fPIC app_addon_sql_mysql.c app_saycountpl.c cdr_addon_mysql.c chan_ooh323.c format_mp3.c res_config_mysql.c gcc: chan_ooh323.c: No such file or directory gcc: format_mp3.c: No such file or directory gcc -g -c -fPIC -fPIC -o app_addon_sql_mysql.o app_addon_sql_mysql.c gcc -shared -Xlinker -x -o app_addon_sql_mysql.so app_addon_sql_mysql.o -L/usr/lib -lmysqlclient -lz -lcrypt -lnsl -lm gcc -fPIC -fPIC -c -o app_saycountpl.o app_saycountpl.c gcc -shared -Xlinker -x -o app_saycountpl.so app_saycountpl.o gcc -g -c -fPIC -fPIC -o cdr_addon_mysql.o cdr_addon_mysql.c gcc -shared -Xlinker -x -o cdr_addon_mysql.so cdr_addon_mysql.o -L/usr/lib -lmysqlclient -lz -lcrypt -lnsl -lm make[2]: Entering directory/usr/src/asterisk-1.4/asterisk-addons-1.4/asterisk-ooh323c’
make all-am
make[3]: Entering directory /usr/src/asterisk-1.4/asterisk-addons-1.4/asterisk-ooh323c' source='src/chan_h323.c' object='chan_h323.lo' libtool=yes \ depfile='.deps/chan_h323.Plo' tmpdepfile='.deps/chan_h323.TPlo' \ depmode=gcc3 /bin/sh ./config/depcomp \ /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I./ooh323c/src -I./ooh323c/src/h323 -DGNU -D_GNU_SOURCE -D_REENTRANT -D_COMPACT -c -o chan_h323.lotest -f ‘src/chan_h323.c’ || echo './‘src/chan_h323.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I. -I./ooh323c/src -I./ooh323c/src/h323 -DGNU -D_GNU_SOURCE -D_REENTRANT -D_COMPACT -c src/chan_h323.c -MT chan_h323.lo -MD -MP -MF .deps/chan_h323.TPlo -fPIC -DPIC -o .libs/chan_h323.lo src/chan_h323.c: In functionooh323_new’:
src/chan_h323.c:250: error: too few arguments to function ast_channel_alloc' make[3]: *** [chan_h323.lo] Error 1 make[3]: Leaving directory/usr/src/asterisk-1.4/asterisk-addons-1.4/asterisk-ooh323c’
make[2]: *** [all] Error 2
make[2]: Leaving directory /usr/src/asterisk-1.4/asterisk-addons-1.4/asterisk-ooh323c' make[1]: *** [chan_ooh323.so] Error 2 rm app_saycountpl.o make[1]: Leaving directory/usr/src/asterisk-1.4/asterisk-addons-1.4’
make: *** [all] Error 2


How can I solve it?

Thanks in advance!

do you have the h323 dependencies installed ? do you even want ooh323 or did you just select everything ?

I have installed this packages

nemo:/usr/src/asterisk-1.4/asterisk-addons-1.4# dpkg --get-selections | grep 323
libopenh323-1.15.2 install
libopenh323-dev install

but I don’t know if this is “all” the necessary dependencies!

PS
I want ooh323.

this is weird. i enabled h323 compilation using ‘make menuselect’ and it failed during compilation. then i looked at the documentation and it says :

[code]2. To build asterisk-ooh323c addons

  To update or if you hadn't downloaded the asterisk-ooh323c channel driver
  code, you can do so using following command (To get the latest 
  asterisk-addons 1.2 branch source from svn):
  >svn checkout http://svn.digium.com/svn/asterisk-addons/branches/1.2 asterisk-addons-1.2

  To build & install:
  >cd asterisk-addons-1.2/asterisk-ooh323c
  >./configure
  >make

  For debugging purpose, instead of "make", run "make debug"

  The library will be generated at 
  asterisk-addons-1.2/asterisk-ooh323c/.libs/libchan_h323.so.1.0.1 

  To install libchan_h323.so in /usr/libs/modules/ directory, change to 
  'super user' mode and then run:
  >make install[/code]

compiled no problem ! not keen on the fact it refers to 1.2 as being the latest though.

I’ve done it!

[quote=“baconbuttie”][code]2. To build asterisk-ooh323c addons

  To update or if you hadn't downloaded the asterisk-ooh323c channel driver
  code, you can do so using following command (To get the latest
  asterisk-addons 1.2 branch source from svn):
  >svn checkout http://svn.digium.com/svn/asterisk-addons/branches/1.2 asterisk-addons-1.2 [/code][/quote]

I’ve done
svn checkout svn.digium.com/svn/asterisk-addons/branches/1.4 asterisk-addons-1.4

[quote=“baconbuttie”] To build & install: >cd asterisk-addons-1.2/asterisk-ooh323c >./configure >make[/quote]

I’ve done it but this is the error:
(maybe I missed some dev package?)
any idea?

nemo:/usr/src/asterisk-1.4/asterisk-addons-1.4/asterisk-ooh323c# make make all-am make[1]: Entering directory `/usr/src/asterisk-1.4/asterisk-addons-1.4/asterisk-ooh323c' source='src/chan_h323.c' object='chan_h323.lo' libtool=yes \ depfile='.deps/chan_h323.Plo' tmpdepfile='.deps/chan_h323.TPlo' \ depmode=gcc3 /bin/sh ./config/depcomp \ /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I./ooh323c/src -I./ooh323c/src/h323 -DGNU -D_GNU_SOURCE -D_REENTRANT -D_COMPACT -c -o chan_h323.lo `test -f 'src/chan_h323.c' || echo './'`src/chan_h323.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I. -I./ooh323c/src -I./ooh323c/src/h323 -DGNU -D_GNU_SOURCE -D_REENTRANT -D_COMPACT -c src/chan_h323.c -MT chan_h323.lo -MD -MP -MF .deps/chan_h323.TPlo -fPIC -DPIC -o .libs/chan_h323.lo src/chan_h323.c: In function `ooh323_new': src/chan_h323.c:250: error: too few arguments to function `ast_channel_alloc' make[1]: *** [chan_h323.lo] Error 1 make[1]: Leaving directory `/usr/src/asterisk-1.4/asterisk-addons-1.4/asterisk-ooh323c' make: *** [all] Error 2

PS
With version 1.2 from branches I’ve got the same error!!!

nobody knows to help me?

I guess the addons haven’t been updated for a while! Atleast not the ooh323 code, as it fail to set the caller id when allocating the channel.

Try changing the code in chan_h323.c so it looks like below. I’m not sure it’s correct, but atleast it compiles for me![code]…

static struct ast_channel *ooh323_new(struct ooh323_pvt *i, int state,
const char *host)
{
struct ast_channel *ch = NULL;
char *cid_num, cid_name; / G?ran Larsson - fix for new channel allocation format */
int fmt;
if(gH323Debug)
ast_log(LOG_DEBUG, “— ooh323_new - %s\n”, host);

/* Don’t hold a h323 pvt lock while we allocate a channel /
ast_mutex_unlock(&i->lock);
/
BEGIN: G?ran Larsson - fix for new channel allocation format */
if (!ast_strlen_zero(i->callerid_num))
cid_num = i->callerid_num;
else
cid_num = i->caller_dialedDigits;

if (!ast_strlen_zero(i->callerid_name))
cid_name = i->callerid_name;
else
cid_name = i->caller_h323id;
ch = ast_channel_alloc(1, state, cid_num, cid_name, “OOH323/%s”, host);
/* END: G?ran Larsson - fix for new channel allocation format */
ast_mutex_lock(&i->lock);

…[/code]