Calling-Station-Id problem

ziko emobuxuti at yahoo.com
Mon Mar 14 20:42:05 CET 2011


thank you guys. I will try. Thank you!




________________________________
From: Brian Candler <B.Candler at pobox.com>
To: FreeRadius users mailing list <freeradius-users at lists.freeradius.org>
Sent: Mon, March 14, 2011 11:42:09 AM
Subject: Re: Calling-Station-Id problem

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



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20110314/f86f98d0/attachment.html>


More information about the Freeradius-Users mailing list