On 03/31/2014 10:30 AM, Arthur wrote: > SDP-Session-Description: VM., v=0 > SDP-Session-Description: VM., o=- 640284584 403958478 IN IP4 > 94.50.86.245 > SDP-Session-Description: VM., s=- > SDP-Session-Description: VM., c=IN IP4 94.50.120.5 > SDP-Session-Description: VM., t=0 0 > > I have tried to add the following code to my hook for enumerating all > entries and making fake attributes like 'SDP-Session-Description-n': > > my $ims_info = $si->get_attr(876, 10415); # IMS-Information (grouped) > my $nn; > if (my @avpair = $ims_info->get_attr(842, 10415)) { #
Try get_attrs() instead of get_attr(). This Diameter attribute list works differently here, that is, get_attr does not check if the caller expects a list or a single value. Thanks, Heikki -- Heikki Vatiainen <h...@open.com.au> Radiator: the most portable, flexible and configurable RADIUS server anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS, TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP, DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc. _______________________________________________ radiator mailing list radiator@open.com.au http://www.open.com.au/mailman/listinfo/radiator