Hi, How can I use uc function below in order to change lower case to upper case?
Ex. 00-18-e7-41-ad-c2 ---> 00-18-E7-41-AD-C2
In the policy.conf:
mac-phase {
if("%{request:Calling-Station-Id}" =~
/([0-9a-f]{2})[-:]?([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}"
}
}
else {
noop
}
}
Best regards
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

