[RADIATOR] Some information lost during Diameter to Radius conversion

Heikki Vatiainen hvn at open.com.au
Mon Mar 31 08:16:25 CDT 2014


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 <hvn at 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.


More information about the radiator mailing list