app_conference

Hello,
Have anyone succeded to compile and use app_conference?
I try to compile but end up with this:

gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g -I/usr/local/include/asterisk/ -D_REENTRANT -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops -fprefetch-loop-arrays -fsingle-precision-constant -march=pentium3 -msse -mfpmath=sse,387 -DCRYPTO -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o app_conference.o app_conference.c
In file included from app_conference.c:19:
app_conference.h:25:26: asterisk/pbx.h: No such file or directory
app_conference.h:26:29: asterisk/module.h: No such file or directory
app_conference.h:27:29: asterisk/logger.h: No such file or directory
app_conference.h:28:27: asterisk/lock.h: No such file or directory
app_conference.h:29:28: asterisk/frame.h: No such file or directory
app_conference.h:30:30: asterisk/manager.h: No such file or directory
app_conference.h:31:26: asterisk/dsp.h: No such file or directory
app_conference.h:32:32: asterisk/translate.h: No such file or directory
app_conference.h:33:30: asterisk/channel.h: No such file or directory
app_conference.h:34:27: asterisk/file.h: No such file or directory
app_conference.h:35:26: asterisk/cli.h: No such file or directory
app_conference.h:36:28: asterisk/utils.h: No such file or directory
In file included from /usr/include/string.h:49,
from app_conference.h:41,
from app_conference.c:19:
/usr/local/include/asterisk/strings.h:29:33: asterisk/inline_api.h: No such file or directory
/usr/local/include/asterisk/strings.h:30:31: asterisk/compiler.h: No such file or directory
/usr/local/include/asterisk/strings.h:31:29: asterisk/compat.h: No such file or directory
In file included from /usr/include/string.h:49,
from app_conference.h:41,
from app_conference.c:19:
/usr/local/include/asterisk/strings.h:33: error: syntax error before “int”
/usr/local/include/asterisk/strings.h:46: error: syntax error before ‘{’ token
/usr/local/include/asterisk/strings.h:23:1: unterminated #ifndef
In file included from app_conference.h:41,
from app_conference.c:19:
/usr/include/string.h:48:1: unterminated #if
/usr/include/string.h:37:1: unterminated #ifndef
In file included from app_conference.c:19:
app_conference.h:19:1: unterminated #ifndef
gmake: *** [app_conference.o] Error 1

Any help would be appreciated
Kind regards
Johan Wilfer

Hi.

It compiles fine against 1.2.10 on centos. what version of * are you trying it on? as I have tried it agaist trunk and it doesnt compile.

you will also need to edit the Makefile as per the wiki.

I’ve made some progress… Gave up and now I am trying agian…

I have modified the makefile acording to the wiki.

But now I got these errors instead.

member.c:817: error: type mismatch in conditional expression
member.c:818: error: incompatible types in assignment

If I comment out this line the next one also gives an error.
I run Asterisk via the ports tree, version 1.2.13

I also tries app conference with VICIDIAL, it worked mostly without changes (only the directories). I got the same error here.

First, you have to untar asterisk code to /usr/src
(/usr/src/asterisk) before compile this software.
After, untar the app_conference on /usr/src.

If you look on Makefile, you will see that the asterisk include files are accessible by the app_code.

ok?

Best regards,

Woooha!
It worked,
thanks!

Previously when I was modifying the Makefile I pointed the includedir to /usr/local/include/asterisk (and that didn’t work)
Now with your help I pointed the includedir to /usr/src/asterisk/include after I downloaded the current source and unpacked it as /usr/src/asterisk.

Hopefully this thread will help others too.
Thanks again. :smiley:

good!

include/lib dir: Linux != FreeBSD !

ok?

Regards,

Acctualy I have never tried to compile app_conferance in linux so I don’t know how the procedure.

But on FreeBSD I had to do this:

  1. Download the asterisk source to /usr/src/asterisk
  2. Download the app_conferance to /usr/src/app_conferance
  3. Modify the source / header files according to the wiki.
  4. Modify the Makefile and change the includedir, there are also other dirs-options that could be changed, but I did only use this one because:
  5. Run gmake in app_conferance

And last I did not trust the gmake install, so I copied the app_conference.so file manualy to /usr/local/lib/asterisk/modules/
This dir is probably FreeBSD specific, for linux users: copy it to the right modules directory.

Works great.
Now I will try to replace meetme with it. :smile: