[RADIATOR] Get Diameter AVP value in PreProcessingHook
Mike McCauley
mikem at open.com.au
Sun Oct 4 17:43:33 CDT 2009
Hello Arthur,
In a hook, given a $p that points to a Radius request that was derived from a
Diameter request received by ServerDIAMETER, You should be able to get
Diameter attributes from the original Diameter request with eg:
$p->{diameter_request}->get_attr($Radius::DiaAttrList::ACODE_ACCOUNTING_RECORD_NUMBER);
Hope that helps.
Cheers.
On Friday 25 September 2009 06:13:17 pm Arthur Konovalov wrote:
> Hi!
> I'm trying to get Diameter's original AVP in preprocessing hook file,
> but unsuccessfully (get_attr not working).
> For example I need 'Accounting-Record-Number' (485) and
> 'Destination-Host' (293).
> Is it possible to get not converted to Radius AVP at all here? In
> hooks.txt I did not find examples of it.
> Or is only way to modify Radiator's core and create there fake Radius
> attributes?
>
> Please help me...
>
> Regards,
> AK
>
> _______________________________________________
> radiator mailing list
> radiator at open.com.au
> http://www.open.com.au/mailman/listinfo/radiator
--
Mike McCauley mikem at open.com.au
Open System Consultants Pty. Ltd
9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.open.com.au
Phone +61 7 5598-7474 Fax +61 7 5598-7070
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, DIAMETER etc. Full source
on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.
More information about the radiator
mailing list