[Serusers] FW: radius accounting problem.
serdiehard
serdiehard at yahoo.com
Fri Jan 21 17:43:13 CET 2005
Dear Lucas,
which flag you are useing for recording the accouting
in mysql tbales.
is it radius_flag or radius_log_flag
can you just show sample configuration file of the
ser.cfg
mines is like this
# ------------------ module loading
loadmodule "/usr/local/lib/ser/modules/mysql.so"
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/acc.so"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
modparam("usrloc", "db_mode", 0)
modparam("auth_radius","radius_config","/usr/local/etc/radiusclient/radiusclient.conf")
modparam("auth_radius","service_type",15)
modparam("acc","radius_config",
"/usr/local/etc/radiusclient/radiusclient.conf")
modparam("acc","service_type",15)
modparam("acc", "log_level", 1)
modparam("acc", "log_flag" , 1)
modparam("acc", "radius_flag", 1)
modparam("acc","radius_missed_flag",2)
modparam("tm", "fr_inv_timer", 15 )
modparam("tm", "fr_timer", 10 )
modparam("auth", "secret", "testing123")
modparam("auth_radius", "service_type", 15)
#modparam("auth_db", "password_column", "password")
modparam("rr", "enable_full_lr", 1)
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
# ------------------------- request routing logic
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwards==0, or excessively long
requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (msg:len >= max_len ) {
sl_send_reply("513", "Message too
big");
break;
};
if (search ("^(Contact|m):
.*@(192\.168\.|10\.|172\.16)" ) ){
# if (uri=~"@server.pol.net.in"){
log(1,"server private ip");
};
if (nat_uac_test("3")) {
if (method == "REGISTER" || !
search("^Record-Route:")) {
log("LOG: Someone trying to
register from private IP, rewriting\n");
fix_nated_contact();
if (method == "INVITE") {
fix_nated_sdp("1");
};
force_rport();
setflag(6);
};
};
if (!method=="REGISTER") record_route();
if (loose_route()) {
append_hf("P-hint: rr-enforced\r\n");
route(1);
break;
};
if (!uri==myself) {
append_hf("P-hint: outbound\r\n");
route(1);
break;
};
if (uri==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest
authentication
if (!radius_www_authorize(""))
{
www_challenge("","0");
break;
};
save("location");
break;
};
if (method=="INVITE")
{
log(1, "INVITE\n");
radius_flag(1);
setflag(1); /* set
foraccounting (the same valueas in log_flag!) */
};
i could do the mysql radius authorization but not
accounting so how to achive this
if i use like this it showing that as badconfig file
so how to do it
--- Lucas Aimaretto <lucas at cyneric.com> wrote:
> > Anybody here solved the radius accounting problem
> with ser?
> > Please post if you are using radius with ser for
> accounting.
> >
> > Thanks
> >
>
&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*
> > C.M. Rahman Jr. <Archivo: ATT00023.txt >>
>
> Not me. I'm being able to account calls, but can not
> do any billing,
> because SER does not send Acct-Session-Time
> Attribute. I was told that I
> need a b2bua to accomplish that. So used b2bua from
> vovida.org, but
> nothing happened. vovida's b2bua does not send
> Acct-Session-Time. Now
> I'm trying to use Asterisk as b2bua, but it is being
> difficult to
> configure. Any help would be appreciated.
>
> By the way. Has anybody done billing with ser ??
>
> Regards,
>
> Lucas
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.6.10 -
> Release Date: 10/01/2005
>
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the sr-users
mailing list