hello friend,
i got your mail id from mailing list it seems that you
have successfully implemented the accounting module
of the radius server.
i have problem with radius accounting
my steps are as follows
1 )i have removed the radius_acc radius_auth
auth_radius
group_radius uri_radius from exclude section of the
Makefile of the ser and in the acc module Makefile
2)i have removed the comments to the statements
DEFS+=-DRAD_ACC
LIBS=-L$(LOCALBASE)/lib -lradiusclient
3)and i made make all , make install
when i run ser in the debug mode its giveing message
like
0(7530) set_mod_param_regex: acc matches module acc
0(7530) set_mod_param_regex: parameter
<radius_config> not found in module <acc>
0(7530) parse error (76,57-58): Can't set module
parameter
0(7530) set_mod_param_regex: acc matches module acc
0(7530) set_mod_param_regex: found <log_level> in
module acc [/usr/local/lib/ser/modules/acc.so]
and its shutting down .
in my ser.cfg account related modules and statements
are as follows
module loading
----------------------------------
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
loadmodule "/usr/local/lib/ser/modules/acc.so"
# !! Nathelper
loadmodule "/usr/local/lib/ser/modules/nathelper.so"
setting module-specific parameters
---------------
# -- usrloc params --
modparam("usrloc", "db_mode", 0)
modparam("auth_radius", "radius_config",
"/root/radiusclient.conf")
modparam("auth_radius","service_type",15)
modparam("acc","radius_config","/root/radiusclient.conf")
#modparam("acc","service_type",15)
#modparam("acc", "radius_flag", 1)
#modparam("acc","radius_missed_flag",3)
modparam("acc", "log_level", 1)
modparam("rr", "enable_full_lr", 1)
# !! Nathelper
modparam("registrar", "nat_flag", 6)
modparam("nathelper", "natping_interval", 30) # Ping
interval 30 s
modparam("nathelper", "ping_nated_only", 1) # Ping
only clients behind NAT
----in routing logic i have
if (method=="INVITE") {
log(1, "INVITE\n");
setflag(1); /* set for accounting
(the same value as in log_flag!) */
};
if (method=="MESSAGE") {
log(1, "MESSAGE\n");
setflag(1); /* set for accounting
(the same value as in log_flag!) */
};
if (method=="BYE" || method=="CANCEL") {
log (1, "BYE or CANCEL\n");
setflag(1);
};
i have seen in the mailing list as
"we will probably need to change some "#includes" in
<ser_directory>/sip_router/modules/acc/dict.h, to be
the same than
<ser_directory>/sip_router/etc/radiusclient.h."
so where do i need it to do
so where most be iam going wrong
please help me
with regards
rama kanth
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/