(RADIATOR) Multiple check items as logical OR
david.kramar at aliatel.cz
david.kramar at aliatel.cz
Fri Oct 11 01:52:50 CDT 2002
Hi Martin
You can use regular expression like this:
<Handeler Called-Station-Id =/1111|2222|3333|^33449900$/>
match: 1111,*1111* number, where * any numer...
match: ^33449900$ match only 33449900, not 334,3344990077 ....
And same regular expr. you can use in db file, sql per user check.
Hugh, one question: What is more speedy: Regular expression in Handler or multiple Handler??
i think little bit is more speedy multiple handler but no more than 5% ...
Hope help
David
-----Původní zpráva-----
Od: Martin J. Laubach [mailto:mjl at laubach.at]
Odesláno: 10. října 2002 23:14
Komu: radiator at open.com.au
Předmět: (RADIATOR) Multiple check items as logical OR
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.
===
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