Thanks to all who have helped me build and test out Asterisk installation thus far. I needed to move my * installation to a new box , due to the fact my test machine would not support PCI 2.2 ( which I am told is required to use my TDM11B). I have * up and running and I am attempting to compile the app_conference source. The MeetMe app has too much echo. I am running Debian 2.4.26 and get tons of compile errors. If I compile right from the CVS of app_conference I get: chatterbox:/usr/src/app_conference# make gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I/root/local/asterisk/asterisk/include -D_REENTRANT -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops -fprefetch-loop-arrays -fsingle-precision-constant -mcpu=7450 -faltivec -mabi=altivec -mdynamic-no-pic -DCRYPTO -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o app_conference.o app_conference.c cc1: error: invalid option `abi=altivec' cc1: error: invalid option `dynamic-no-pic' cc1: error: unrecognized option `-faltivec' cc1: error: bad value (7450) for -mcpu= switch cc1: warning: -fprefetch-loop-arrays not supported for this target (try -march switches) make: *** [app_conference.o] Error 1 I then fix the mcpu ( I am on a Pentium4 Box). I comment out the line. I run make clean and make and then get the following. gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I/root/local/asterisk/asterisk/include -D_REENTRANT -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops -fprefetch-loop-arrays -fsingle-precision-constant -DCRYPTO -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o app_conference.o app_conference.c cc1: warning: -fprefetch-loop-arrays not supported for this target (try -march switches) gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I/root/local/asterisk/asterisk/include -D_REENTRANT -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops -fprefetch-loop-arrays -fsingle-precision-constant -DCRYPTO -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o conference.o conference.c cc1: warning: -fprefetch-loop-arrays not supported for this target (try -march switches) conference.c:29: error: `__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__' undeclared here (not in a function) conference.c:32: error: `__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__' undeclared here (not in a function) make: *** [conference.o] Error 1 I change my two lines in conference.c as per http://lists.digium.com/pipermail/asterisk-users/2004-September/063765.h tml I run make clean, make and get the following error chatterbox:/usr/src/app_conference# make gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I/root/local/asterisk/asterisk/include -D_REENTRANT -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops -fprefetch-loop-arrays -fsingle-precision-constant -DCRYPTO -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o app_conference.o app_conference.c cc1: warning: -fprefetch-loop-arrays not supported for this target (try -march switches) gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I/root/local/asterisk/asterisk/include -D_REENTRANT -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops -fprefetch-loop-arrays -fsingle-precision-constant -DCRYPTO -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o conference.o conference.c cc1: warning: -fprefetch-loop-arrays not supported for this target (try -march switches) gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I/root/local/asterisk/asterisk/include -D_REENTRANT -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops -fprefetch-loop-arrays -fsingle-precision-constant -DCRYPTO -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o member.o member.c cc1: warning: -fprefetch-loop-arrays not supported for this target (try -march switches) member.c: In function `member_exec': member.c:76: error: structure has no member named `dnid' member.c:76: error: structure has no member named `callerid' member.c:76: error: structure has no member named `ani' make: *** [member.o] Error 1 I have edited my member.c to remove any reference to the dnid,callerid and ani , and it compiles. But when someone connects to the conference * crashes. I know I am missing something simple ( I hope) I have also followed the instructions on http://lists.digium.com/pipermail/asterisk-users/2004-September/063765.h tml to no avail. I have also copied my app_conference files from another Asterisk box ( it compiles fine on that box). On my new box it will not compile. TIA Shawn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041020/b8da05f8/attachment.htm
Shawn Dillon wrote:> Thanks to all who have helped me build and test out Asterisk > installation thus far. I needed to move my * installation to a new box > , due to the fact my test machine would not support PCI 2.2 ( which I > am told is required to use my TDM11B). > > > > I have * up and running and I am attempting to compile the > app_conference source. The MeetMe app has too much echo. > > I am running Debian 2.4.26 and get tons of compile errors. > > > > If I compile right from the CVS of app_conference I get: > > > > chatterbox:/usr/src/app_conference# make > > gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations > -g -I/root/local/asterisk/asterisk/include -D_REENTRANT > -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops > -fprefetch-loop-arrays -fsingle-precision-constant -mcpu=7450 > -faltivec -mabi=altivec -mdynamic-no-pic -DCRYPTO > -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o app_conference.o > app_conference.c > > cc1: error: invalid option `abi=altivec' > > cc1: error: invalid option `dynamic-no-pic' > > cc1: error: unrecognized option `-faltivec' > > cc1: error: bad value (7450) for -mcpu= switch > > cc1: warning: -fprefetch-loop-arrays not supported for this target > (try -march switches) > > make: *** [app_conference.o] Error 1 > > > > I then fix the mcpu ( I am on a Pentium4 Box). I comment out the line. > > > > I run make clean and make and then get the following. > > gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations > -g -I/root/local/asterisk/asterisk/include -D_REENTRANT > -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops > -fprefetch-loop-arrays -fsingle-precision-constant -DCRYPTO > -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o app_conference.o > app_conference.c > > cc1: warning: -fprefetch-loop-arrays not supported for this target > (try -march switches) > > gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations > -g -I/root/local/asterisk/asterisk/include -D_REENTRANT > -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops > -fprefetch-loop-arrays -fsingle-precision-constant -DCRYPTO > -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o conference.o > conference.c > > cc1: warning: -fprefetch-loop-arrays not supported for this target > (try -march switches) > > conference.c:29: error: > `__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__' > undeclared here (not in a function) > > conference.c:32: error: > `__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__' > undeclared here (not in a function) > > make: *** [conference.o] Error 1 > > > > I change my two lines in conference.c as per > http://lists.digium.com/pipermail/asterisk-users/2004-September/063765.html > > I run make clean, make and get the following error > > > > chatterbox:/usr/src/app_conference# make > > gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations > -g -I/root/local/asterisk/asterisk/include -D_REENTRANT > -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops > -fprefetch-loop-arrays -fsingle-precision-constant -DCRYPTO > -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o app_conference.o > app_conference.c > > cc1: warning: -fprefetch-loop-arrays not supported for this target > (try -march switches) > > gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations > -g -I/root/local/asterisk/asterisk/include -D_REENTRANT > -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops > -fprefetch-loop-arrays -fsingle-precision-constant -DCRYPTO > -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o conference.o > conference.c > > cc1: warning: -fprefetch-loop-arrays not supported for this target > (try -march switches) > > gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations > -g -I/root/local/asterisk/asterisk/include -D_REENTRANT > -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops > -fprefetch-loop-arrays -fsingle-precision-constant -DCRYPTO > -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o member.o member.c > > cc1: warning: -fprefetch-loop-arrays not supported for this target > (try -march switches) > > member.c: In function `member_exec': > > member.c:76: error: structure has no member named `dnid' > > member.c:76: error: structure has no member named `callerid' > > member.c:76: error: structure has no member named `ani' > > make: *** [member.o] Error 1 > > > > I have edited my member.c to remove any reference to the dnid,callerid > and ani , and it compiles. But when someone connects to the conference > * crashes. >Did you remove the whole ast_log statement?> > > I know I am missing something simple ( I hope) > > I have also followed the instructions on > http://lists.digium.com/pipermail/asterisk-users/2004-September/063765.html > to no avail. > > I have also copied my app_conference files from another Asterisk box ( > it compiles fine on that box). On my new box it will not compile. >Obviously, asterisk's API must have changed between the two versions you're using here.. I haven't compiled app_conference against a more recent asterisk than the _old_ stable_1_0 stuff. What version are you compiling against? Also, you can run asterisk under gdb and find out where it's crashing.. -SteveK -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041020/299efc67/attachment.htm
I found this patch a few days ago (on a mailing list), and patched it against the latest cvs which I downloaded for app conference. With these changes I believe everything compiled fine no other tweaks required other then the include dir for asterisk in the make file. On a side note, id like to see a few more features in this module beep on entry & part is a big one, however my c/c++ isnt savy enough. I made some attempts but without any luck. If anyone feels bored, try it out and let me know. Donny -----Original Message----- From: Darren Wiebe [mailto:darren@hagenhomes.com] Sent: October 20, 2004 7:12 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] app_conference I don't really like swapping binaries but... I have an app_conference.so binary file I could send to you if you like. It is working on the latest stable cvs as of a few days ago. If you would like it, please let me know and I will get it available. Darren Wiebe darren@hagenhomes.com Steve Kann wrote:> Shawn Dillon wrote: > >> Thanks to all who have helped me build and test out Asterisk >> installation thus far. I needed to move my * installation to a new >> box , due to the fact my test machine would not support PCI 2.2 ( >> which I am told is required to use my TDM11B). >> >> >> >> I have * up and running and I am attempting to compile the >> app_conference source. The MeetMe app has too much echo. >> >> I am running Debian 2.4.26 and get tons of compile errors. >> >> >> >> If I compile right from the CVS of app_conference I get: >> >> >> >> chatterbox:/usr/src/app_conference# make >> >> gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations >> -g -I/root/local/asterisk/asterisk/include -D_REENTRANT >> -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops >> -fprefetch-loop-arrays -fsingle-precision-constant -mcpu=7450 >> -faltivec -mabi=altivec -mdynamic-no-pic -DCRYPTO >> -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o app_conference.o>> app_conference.c >> >> cc1: error: invalid option `abi=altivec' >> >> cc1: error: invalid option `dynamic-no-pic' >> >> cc1: error: unrecognized option `-faltivec' >> >> cc1: error: bad value (7450) for -mcpu= switch >> >> cc1: warning: -fprefetch-loop-arrays not supported for this target >> (try -march switches) >> >> make: *** [app_conference.o] Error 1 >> >> >> >> I then fix the mcpu ( I am on a Pentium4 Box). I comment out theline.>> >> >> >> I run make clean and make and then get the following. >> >> gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations >> -g -I/root/local/asterisk/asterisk/include -D_REENTRANT >> -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops >> -fprefetch-loop-arrays -fsingle-precision-constant -DCRYPTO >> -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o app_conference.o>> app_conference.c >> >> cc1: warning: -fprefetch-loop-arrays not supported for this target >> (try -march switches) >> >> gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations >> -g -I/root/local/asterisk/asterisk/include -D_REENTRANT >> -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops >> -fprefetch-loop-arrays -fsingle-precision-constant -DCRYPTO >> -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o conference.o >> conference.c >> >> cc1: warning: -fprefetch-loop-arrays not supported for this target >> (try -march switches) >> >> conference.c:29: error: >> `__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__' >> undeclared here (not in a function) >> >> conference.c:32: error: >> `__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__' >> undeclared here (not in a function) >> >> make: *** [conference.o] Error 1 >> >> >> >> I change my two lines in conference.c as per >> http://lists.digium.com/pipermail/asterisk-users/2004-September/06376 >> 5.html >> >> I run make clean, make and get the following error >> >> >> >> chatterbox:/usr/src/app_conference# make >> >> gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations >> -g -I/root/local/asterisk/asterisk/include -D_REENTRANT >> -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops >> -fprefetch-loop-arrays -fsingle-precision-constant -DCRYPTO >> -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o app_conference.o>> app_conference.c >> >> cc1: warning: -fprefetch-loop-arrays not supported for this target >> (try -march switches) >> >> gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations >> -g -I/root/local/asterisk/asterisk/include -D_REENTRANT >> -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops >> -fprefetch-loop-arrays -fsingle-precision-constant -DCRYPTO >> -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o conference.o >> conference.c >> >> cc1: warning: -fprefetch-loop-arrays not supported for this target >> (try -march switches) >> >> gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations >> -g -I/root/local/asterisk/asterisk/include -D_REENTRANT >> -D_GNU_SOURCE -O3 -ffast-math -funroll-all-loops >> -fprefetch-loop-arrays -fsingle-precision-constant -DCRYPTO >> -DAPP_CONFERENCE_DEBUG -Ilibspeex -DSILDET=2 -c -o member.omember.c>> >> cc1: warning: -fprefetch-loop-arrays not supported for this target >> (try -march switches) >> >> member.c: In function `member_exec': >> >> member.c:76: error: structure has no member named `dnid' >> >> member.c:76: error: structure has no member named `callerid' >> >> member.c:76: error: structure has no member named `ani' >> >> make: *** [member.o] Error 1 >> >> >> >> I have edited my member.c to remove any reference to the >> dnid,callerid and ani , and it compiles. But when someone connects to>> the conference * crashes. >> > Did you remove the whole ast_log statement? > >> >> >> I know I am missing something simple ( I hope) >> >> I have also followed the instructions on >> http://lists.digium.com/pipermail/asterisk-users/2004-September/06376 >> 5.html >> to no avail. >> >> I have also copied my app_conference files from another Asterisk box >> ( it compiles fine on that box). On my new box it will not compile. >> > Obviously, asterisk's API must have changed between the two versions > you're using here.. > > I haven't compiled app_conference against a more recent asterisk than > the _old_ stable_1_0 stuff. > > What version are you compiling against? > > Also, you can run asterisk under gdb and find out where it'scrashing..> > > > -SteveK > >----------------------------------------------------------------------- >- > >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >_______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- A non-text attachment was scrubbed... Name: unf.patch Type: application/octet-stream Size: 5102 bytes Desc: unf.patch Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20041020/8df74e8b/unf.obj
I tried to get app_conference running tonight, but it seems to crash with segmentation faults, every time the second user enters the system. Here is the console output (ip addresses removed) from the session, including gdb output at the segmentation fault: -- Accepting unauthenticated call from XXX.XXX.XXX.XXX, requested format 2, actual format = 1024 Nov 5 04:35:35 NOTICE[180236]: channel.c:284 ast_alloc_uniqueid: uid asterisk-11277-1099629335.1 [New Thread 458781 (LWP 11313)] -- Executing Conference("IAX2/server@server/1", "Test/M/0") in new stack [New Thread 475166 (LWP 11314)] -- Accepting unauthenticated call from XXX.XXX.XXX.XXX, requested format 2, actual format = 1024 Nov 5 04:35:37 NOTICE[180236]: channel.c:284 ast_alloc_uniqueid: uid asterisk-11277-1099629337.2 [New Thread 491551 (LWP 11315)] Nov 5 04:35:37 NOTICE[458781]: chan_iax2.c:2473 iax2_read: I should never be called! -- Executing Conference("IAX2/server@server/5", "Test/M/0") in new stack Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 475166 (LWP 11314)] 0x40189cd5 in mallopt () from /lib/libc.so.6 This is Debian Sarge, libc6 2.3.2.ds1-18 asterisk 1.0.2 app_conference from cvs tonight (though i had to fix the mutex stuff etc. to get it compiled). Any suggestions ? Kind regards, Martin List-Petersen -- <woot> Put *that* in you .sig and smoke it, Knghtbrd. <Culus> You know he will read this :> <woot> heheheheh.
Anyone tried to build app_conference lately? I'm trying to setup a large conference where i speaker can talk to many listeners, for example 1 speaker and about 100 listeners (who can not speak back to the speaker, 1 way audio only) However, if i try to build app_conference against 1.0.6 or 1.0.7 it won't compile with an error message: make gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I/root/local/asterisk/asterisk/include -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 -DSILDET=1 -c -o app_conference.o app_conference.c gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I/root/local/asterisk/asterisk/include -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 -DSILDET=1 -c -o conference.o conference.c conference.c: In function `create_conf': conference.c:614: warning: implicit declaration of function `__use_ast_pthread_create_instead__' gcc -pipe -std=c99 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I/root/local/asterisk/asterisk/include -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 -DSILDET=1 -c -o member.o member.c member.c: In function `member_exec': member.c:76: error: structure has no member named `cid' member.c:76: error: structure has no member named `cid' member.c:76: error: structure has no member named `cid' member.c:165: warning: unused variable `ignore_speex_count' make: *** [member.o] Error 1 _________________________________________________________________ Direct antwoord op je vragen: gebruik MSN Messenger http://messenger.msn.nl/
Hello I installed asterisk with app_conference But How and Where Can I set an conference? Thanks for your answers!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060819/bb407370/attachment.htm