On Sun, Mar 13, 2011 at 04:37:06AM -0700, ziko wrote:
>    I tried both format together like this:
>    user1  Calling-Station-Id == 00-00-00-00-00
>    user1  Calling-Station-Id == 00:00:00:00:00
>    but no success.

You could do a rewrite:

    if (Calling-Station-Id =~ 
/^([0-9a-f]{2})-([0-9a-f]{2})-([0-9a-f]{2})-([0-9a-f]{2})-([0-9a-f]{2})$/i) {
      update request {
        Calling-Station-Id = "%{1}:%{2}:%{3}:%{4}:%{5}:%{6}"
      }
    }
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to