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:[EMAIL PROTECTED]] Odesláno: 10. října 2002 23:14 Komu: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] To unsubscribe, email '[EMAIL PROTECTED]' with 'unsubscribe radiator' in the body of the message. === Archive at http://www.open.com.au/archives/radiator/ Announcements on [EMAIL PROTECTED] To unsubscribe, email '[EMAIL PROTECTED]' with 'unsubscribe radiator' in the body of the message.