(RADIATOR) Multiple check items as logical OR

Martin J. Laubach mjl at laubach.at
Thu Oct 10 16:14:18 CDT 2002


  I want to discern whether an incoming call was for a certain
phone number, so I add a check item Called-Station-Id = 1111.
However, in reality, the phone number called may be 1111 or 2222,
so I'd actually need an OR of two check items -- however, check
items are always treated as logical AND which (apart from not
making much sense to me) shoots me in the foot.

  That problem could, of course, be done by adding a Handler especially
for that situation -- however the client wants to keep most of
the dialin configuration out of the radius.cfg file to centralize
the data needing maintenance.

  I have modified Radiator to interpret multiple occurrances
of the same check item as logical OR. It's a ten line patch
only -- however, I'm not sure whether (a) this doesn't break
things in a subtle way (in fact it does break something, but
that part is not used by my client anyway), and (b) it is the
correct way to handle this (surely I'm not the first with that
requirement, am I).

  Comments, ideas, flames?

	mjl
===
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