[Kamailio-Users] Problem using additional attributes through radius_extra parameter
Juha Heinanen
jh at tutpro.com
Wed Aug 6 20:30:51 CEST 2008
Ruchir writes:
> I'm trying to configure openser & freeradius with AAA. I'm using custom
> mysql tables for authentication & accounting. I've modified queries in
> sql.conf in raddb folder. Authentication works fine. I've added additional
> fields in radius_extra parameter of acc module. I've added those parameters
> in dictionaries of radiusclient-ng & freeradius. But I get blank values for
> custom fields. Any idea what can be wrong?
are you sure that the pseudo variables you use in radius_extra have
values set when you call t_relay?
you can slso start freeradius with -X param and see what it is getting.
-- juha
> modparam("acc",
> "radius_extra","User-Name=$fU;Dialstatus=$avp(s:dialstatus);User-Rate=$avp(i:2016);User-Duration=$avp(i:2016);User-Clid=$fU;User_ClidName=$avp(s:callerid);User_Dst_Name=$avp(s:2014);User_Dst_Code=$avp(i:2015);User_Account_Id=$fU;Lcr_Rate=$avp(i:2030);Lcr_Duration=$avp(i:2016);Lcrtrunk_Id=$avp(i:2027);Lcr_Dst_Name=$avp(s:2028);Lcr_Dst_Code=$avp(i:2029);Real_Duration=$avp(i:2016)")
More information about the sr-users
mailing list