[OpenSIPS-Users] radius accounting: multi-leg, zero session time

Andrew Pogrebennyk andrew.pogrebennyk at portaone.com
Thu Jun 17 18:01:34 CEST 2010


Hello,
I couldn't get radius accounting to work properly lately:

1) How to enable multi-leg accounting in radius?

Jun 13 07:15:34 sip01 /usr/local/sbin/opensips[21050]: rc_avpair_new:
unknown attribute 0
Jun 13 07:15:34 sip01 /usr/local/sbin/opensips[21050]:
ERROR:aaa_radius:rad_avp_add: failure
Jun 13 07:15:34 sip01 /usr/local/sbin/opensips[21050]:
ERROR:acc:acc_aaa_request: failed to add RAD_LEG_SRC, 23

What id and type should the RAD_LEG_SRC, RAD_LEG_DST attributes have?

In config they are defined as:

modparam("acc", "multi_leg_info", 
"RAD_LEG_SRC=$avp(i:901);RAD_LEG_DST=$avp(i:902)"

2) How to make opensips pass session-time attribute to radius?

Sun Jun 3 08:10:12 2010 : Error: [sql] stop packet with zero session
length. [user '000100 at 192.168.0.157', nas '127.0.0.1']

In config I'm doing just acc_aaa_request(). I'm using OpenSIPS 1.6.2 and 
want to do rating with cdrool. Since these are basic things, perhaps 
that's me doing something stupid?

-- 
Regards,
Andrew Pogrebennyk



More information about the Users mailing list