PreHandlerHook (question)

Paul Thorton paul.thornton at asiaonline.net
Wed Sep 5 22:59:33 CDT 2001


Hi,

I want to be able to use the PreHandlerHook to be able to compare a
radius attribute "Class"
and then change it to something else if matched. Can this be done?

IE. If the incoming packet contains the attribute (Class -> perm) then I
want to be able
to change this to Class -> pstn

This is required in order to stop permanent customers from dialing into
our pstn AS pool.

We have something similar for the other way around, but this just
converts all Class's to perm
and this method will not work the other way as not all Class's will be
pstn only.
I.E.
PreHandlerHook sub { ${$_[0]}->add_attr('Class', 'perm'); }

Thanks,

Paul

-------------------------------------------------------
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list