adding new entry in dictionar

Juan Pablo L. jpablolorenzetti at hotmail.com
Tue Apr 28 08:29:54 CEST 2015


Hi everybody, i have added a new entry in dictionary.3gpp2. 
the new entry is part of a TLV that i had created in the past and been using for years successfully, 
but now i needed to add a new field and it does not work, i do not know the reasons 
as i m adding it as i did the rest of the fields in the tlv long time ago (or so i think)

this is the tlv:

# The next set of attributes contain sub-types
ATTRIBUTE       3GPP2-Prepaid-Acct-Quota                                90      tlv
ATTRIBUTE       3GPP2-Prepaid-Acct-Quota-QuotaIDentifier                90.1    integer
ATTRIBUTE       3GPP2-Prepaid-Acct-Quota-VolumeQuota                    90.2    integer
ATTRIBUTE       3GPP2-Prepaid-Acct-Quota-VolumeQuotaOverflow            90.3    integer
ATTRIBUTE       3GPP2-Prepaid-Acct-Quota-VolumeThreshold                90.4    integer
ATTRIBUTE       3GPP2-Prepaid-Acct-Quota-VolumeThresholdOverflow        90.5    integer
ATTRIBUTE       3GPP2-Prepaid-Acct-Quota-UpdateReason                   90.8    short

The new field is 3GPP2-Prepaid-Acct-Quota-VolumeQuotaOverflow. The radius logs still showing this field
as "Attr-26.5535.90.3 = 0x0000", and programatically i m trying to access it as i do  the others
and all i get is garbage. this is how i m trying to access it:

i try to get an id to it from the dictoinary:

inst->vqo = dict_attrbyname("3GPP2-Prepaid-Acct-Quota-VolumeQuotaOverflow");

and then try to access it like this:

volume_quota_overflow = pairfind(request->packet->vps,instance->vqo->attr,_3GPP2_VENDOR,TAG_ANY);


but all i get is garbage (it is actually the whole field as a decimal number which a big number,144907816),
after changing the dictionary i restarted the sever.

i m using freeradius 3.0.7, please any hint will be much appreciated. 

thanks!

 		 	   		  


More information about the Freeradius-Users mailing list