Hello,
On 03/25/04 16:42, Alessio Focardi wrote:
Hello Daniel-Constantin,
DCM> do you want to do both mysql and radius accounting? It should work
DCM> together, just compile the module with the two modes enabled and set the
DCM> same value for radius_flag and db_flag parameters.
I would like to have sip user db in mysql and call log in radius.
that works. You don't need to compile acc with database support, just
with RADIUS.
Anyway compiling acc module with
# uncomment the next two lines if you wish to enable RADIUS accounting
DEFS+=-DRAD_ACC
LIBS=-L$(LOCALBASE)/lib -lradiusclient
results in
All these errors are due to the fact you have incompatible version of
radiusclient library. You have radiusclient 4.1 installed and it should
be 3.x or the other way around -- I am not sure which, but you can find
it on the mailing list archive (google does a very good searching job
when you append
site:mail.iptel.org to any of the errors below).
.Daniel
make[1]: Entering directory
`/usr/src/sip_router/modules/acc'
make[1]: Leaving directory `/usr/src/sip_router/modules/acc'
make[1]: Entering directory `/usr/src/sip_router/modules/acc'
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops
-malign-double -falign-loops -mcpu=athlon -DNAME='"ser"'
-DVERSION='"0.8.12-tcp_nonb"' -DARCH='"i386"'
-DOS='"linux"' -DCOMPILER='"gcc 3.3"' -D__CPU_i386
-D__OS_linux -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_TCP -DDISABLE_NAGLE -DF_MALLOC -DFAST_LOCK
-DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN
-DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DRAD_ACC -c acc.c -o
acc.o
acc.c: In function `acc_rad_request':
acc.c:576:
acc.c:576: warning: passing arg 2 of `rc_avpair_add' makes pointer from integer
without a cast
acc.c:576: warning: passing arg 3 of `rc_avpair_add' makes integer from pointer
without a cast
acc.c:576: error: too few arguments to function `rc_avpair_add'
and more errors ....
any guess ? tnx !