I have the following in my users file:
#######################
DEFAULT Huntgroup-Name == tollfree, Calling-Station-ID == `%{sql: SELECT
'%i' FROM AllowedTollFree WHERE NPANXX = LEFT('%i', 6)`
Reply-Message = "DEFAULT",
Fall-Through = No
DEFAULT Huntgroup-Name == tollfree, Auth-Type := Reject
Reply-Message = "You are not allowed to dial into the toll free
numbers."
#######################
This works great the first time I send a request, but any subsequent
requests unless I use the same Calling-Station-ID I get rejected. I'm
assuming this is because it is caching the result set in memory from the
first request. Is there a way to not cache this in memory or does anyone
have any ideas on a better way to do this? Currently I have hundreds of
entries in the users file where I have to assign each individual
Calling-Station-ID that I want allowed to dial in and I'm trying to find
a way that I can just store this in MySQL.
Thanks,
Aaron Weiker
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html