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

Brett Nemeroff brett at nemeroff.com
Wed Nov 17 17:15:55 CET 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20101117/dbd1e93f/attachment.htm>


More information about the Users mailing list