Dear friends,
I have a working installation of ser 0_8_12 that I would like to integrate with radius accounting for call login/bill.
I have read the tutorial, but is not clear to me if I can account with mysql (like I'm doing now) and log calls with radius ...
Any help will be appreciated ! tnx !
Hello,
On 03/25/04 15:45, Alessio Focardi wrote:
Dear friends,
I have a working installation of ser 0_8_12 that I would like to integrate with radius accounting for call login/bill.
I have read the tutorial, but is not clear to me if I can account with mysql (like I'm doing now) and log calls with radius ...
do you want to do both mysql and radius accounting? It should work together, just compile the module with the two modes enabled and set the same value for radius_flag and db_flag parameters.
.Daniel
Any help will be appreciated ! tnx !
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 !
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 !