On 14.03.2013 07:28, Danny Kurniawan wrote:
> Thanks a lot for your reply.
>
> Yes i got it working. However one more question :
>
> what is the operator used to check if the value is empty ?
>
> if(control:Calling-Station-Id == ""){
> reject
> }
if(!control:Calling-Station-Id) {
reject
}
this will be true if the attribute doesn't exist.
and btw, on your previous messages :
if (control:Calling-Station-Id != "%{Calling-Station-Id"})
last " is misplaced
if (control:Calling-Station-Id != "%{Calling-Station-Id}")
Olivier
--
Olivier Beytrison
Network & Security Engineer, HES-SO Fribourg
Mail: [email protected]
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html