Re: Called-Station-ID variables

2003-11-02 Thread Alan DeKok
Oleg Ustinov [EMAIL PROTECTED] wrote:
 We need to allow or deny country codes like this 49 for Germany 1 for
 USA/Canada.
 But I found no clean expression and variable information about.
 We need it like this: ^49*, ^1*, etc.

  Regular expressions?

DEFAULT   Calling-Station-Id =~ ^49*, Auth-Type := Reject
  ...

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


RE: Called-Station-ID variables

2003-11-02 Thread Oleg Ustinov
Hi Alan,
thank you, but what if I need more allowed destinations?
How can I insert many points in one string? Coma separations?

regards,
oleg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Alan DeKok
Sent: Sunday, November 02, 2003 4:26 PM
To: [EMAIL PROTECTED]
Subject: Re: Called-Station-ID variables


Oleg Ustinov [EMAIL PROTECTED] wrote:
 We need to allow or deny country codes like this 49 for Germany 1 for
 USA/Canada.
 But I found no clean expression and variable information about.
 We need it like this: ^49*, ^1*, etc.

  Regular expressions?

DEFAULT   Calling-Station-Id =~ ^49*, Auth-Type := Reject
  ...

  Alan DeKok.

-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html



- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Called-Station-ID variables

2003-11-02 Thread Alan DeKok
Oleg Ustinov [EMAIL PROTECTED] wrote:
 thank you, but what if I need more allowed destinations?
 How can I insert many points in one string? Coma separations?

  The string is just a regular expression.  I would suggest buying the
O'Reilly Mastering Regular Expressions book for details as to how
regular expressions work.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html