[OpenSIPS-Users] Trouble parsing VSA in Radius Reply (auth)

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Nov 30 21:05:15 CET 2010


Hi Brett,

about VSA, see fix 7410 (1.6 branch) / 7439 (trunk).....It is related to 
handling the radius AVP that have a vendor id.

Regards,
Bogdan

Brett Nemeroff wrote:
> Hello All,
> I'm trying to parse a VSA reply from a radius_send_auth call. My 
> second set looks like this:
> modparam("aaa_radius","sets","ipauthreply  =  (  h323-currency = 
> $avp(s:h323-currency), h323-credit-amount = $avp(s:h323-credit-amount) 
> ) ")
>
> Opensips starts up, which suggests to me that it's finding 
> these attributes in the dictionary just fine. I've tested that by 
> changing the attribute to something like h323-currency2 and it fails 
> (as expected). The send radius packet looks great and I've determined 
> with a pcap that the reply is also properly formated. The reply has 
> the two above attributes with the vendor id of 9 (cisco). Those two 
> attributes do in fact show up in my dictionary as cisco attribtues:
>
> VENDOR          Cisco           9
> ...
> ATTRIBUTE       h323-credit-amount              101     string         
>  Cisco
> ATTRIBUTE       h323-currency                   110     string         
>  Cisco
> ...
>
> When I get a reply, this shows up in the error log (once for each 
> attribute I'm looking for:
> "Nov 16 12:01:22 srv1158 /usr/local/sbin/opensips[25799]: 
> ERROR:aaa_radius:send_auth_func: attribute was not found in received 
> radius message "
>
> I have to think this has something to do with the Vendor ID. What I 
> don't get is that opensips wouldn't load unless it was valid in the 
> dictionary to begin with..
>
> Any ideas?
>
> Thanks,
> Brett
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro




More information about the Users mailing list