Hello,
Wednesday, January 8, 2003, 6:41:55 PM, Alan DeKok wrote:
AD> Andrei Koulik <[EMAIL PROTECTED]> wrote:
>> AD> H323-DialedDigits =~ "((711|713|810|999),)*(711|713|810|999)"
>>
>> AD> should do it.
>> yes, it will work well for any sequence consisted from 711,713,810 and 999
>> divided by ',' (even "999,999,999"). But it is not trivial using
>> regular expression pattern to match exactly that set (not a subset).
>> It is more precisely to use
>> H323-DialedDigits =~ "^((711|713|810|999),){3}(711|713|810|999)$"
AD> Sure, but why does it matter?
AD> I'd rather see a broader match than a narrow one. After I type in
AD> such a regular expression, I'd be annoyed if I had to go back 6 months
AD> later to change it, because the NAS added another 3 digits to the
AD> string.
AD> Alan DeKok.
It do matter, because the H323-DialedDigits contains list
of phone number a client want to registry. A radius must validate user
registry request if it contain allowed phone numbers only (allocated for client).
It may be one of those or all.
H323-DialedDigits =~ "(711|713|810|999)(,(711|713|810|999))*"
is ideally for this task (matches single number as well as list).
Thank you Alan for support.
--
Andrei Koulik.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html