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.
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
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: warning: passing arg 1 of `rc_avpair_add' from incompatible pointer type 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 !