Koozali.org: home of the SME Server

Trying to install Asterisk-Addons

cydonia

Trying to install Asterisk-Addons
« on: December 15, 2004, 08:20:37 AM »
I'm trying to get Asterisk-Addons installed so i can use CDR with a MySQL database.


I tried to follow this page:
http://www.voip-info.org/wiki-Asterisk+cdr+mysql#comments


But i couldn't install Asterisk-Addons, and could never get a cdr_mysql.so file to use.


It says at the bottom that you need zlib-devel, so i have installed that, i'm just not sure how to install asterisk-addons onto my server.

I have done make clean; make install but it just comes up with this stuff:


[root@eunicusserver asterisk-addons-1.0.1]# make clean; make install
rm -f *.so *.o .depend
make -C format_mp3 clean
make[1]: Entering directory /home/e-smith/files/ibays/filecentral/files/src/asterisk-addons-1.0.1/format_mp3'
rm -f *.o *.so *~
make[1]: Leaving directory /home/e-smith/files/ibays/filecentral/files/src/asterisk-addons-1.0.1/format_mp3'
./mkdep -fPIC -I../asterisk -D_GNU_SOURCE  -I/usr/include/mysql   ls *.c
cdr_addon_mysql.c:24:22: asterisk.h: No such file or directory
make -C format_mp3 all
make[1]: Entering directory /home/e-smith/files/ibays/filecentral/files/src/asterisk-addons-1.0.1/format_mp3'
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6    -c -o common.o common.c
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6    -c -o dct64_i386.o dct64_i386.c
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6    -c -o decode_ntom.o decode_ntom.c
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6    -c -o layer3.o layer3.c
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6    -c -o tabinit.o tabinit.c
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6    -c -o interface.o interface.c
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6    -c -o format_mp3.o format_mp3.c
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6  -shared -Xlinker -x -o format_mp3.so common.o dct64_i386.o decode_ntom.o layer3.o tabinit.o interface.o format_mp3.o
make[1]: Leaving directory /home/e-smith/files/ibays/filecentral/files/src/asterisk-addons-1.0.1/format_mp3'
cc -fPIC -I../asterisk -D_GNU_SOURCE  -I/usr/include/mysql     -c -o cdr_addon_mysql.o cdr_addon_mysql.c
cdr_addon_mysql.c:24:22: asterisk.h: No such file or directory
make: *** [cdr_addon_mysql.o] Error 1




Anyone done this before?

Cheers,
Tristan

guest22

Trying to install Asterisk-Addons
« Reply #1 on: December 15, 2004, 09:14:25 AM »
Are you sure you compiled asterisk on the same box? The add-ons rely on some * source files to get compiled.

cydonia

Trying to install Asterisk-Addons
« Reply #2 on: December 15, 2004, 09:34:06 AM »
I used Duncan's RPM.

I have the Asterisk files though for when i got vmail.cgi.


Can i just place addons within the asterisk dir and then run make install?


Thanks.

guest22

Trying to install Asterisk-Addons
« Reply #3 on: December 15, 2004, 10:16:43 AM »
I don't know how Duncan created his rpm. The compilation process looks for asterisk .h files in /usr/include/asterisk

cydonia

Trying to install Asterisk-Addons
« Reply #4 on: December 15, 2004, 10:37:58 AM »
Quote from: "guest22"
I don't know how Duncan created his rpm. The compilation process looks for asterisk .h files in /usr/include/asterisk


I have a whole heap of ".h" files at /usr/include/asterisk .

Thanks.  At least i have a better idea of what the problem is, i will post again if i work out what the problem is.


Thanks.
Tristan

cydonia

Trying to install Asterisk-Addons
« Reply #5 on: December 23, 2004, 08:00:02 AM »
Ok, on inspection of "Makefile", i discovered that it was actually looking for .h files in "../asterisk".   I changed this to "/usr/src/asterisk"  and it worked just fine.

Thanks.
Tristan