Once again I think I'm pushing the envelope.
I'm trying to put an SQL query into my huntgroup file using the
following syntax:
tollfree Calling-Station-ID == `%{sql: SELECT '%i' FROM
AllowedTollFree WHERE NPANXX = LEFT('%i', 6)`
Running the server in debug mode it looks like it tries to process the
request however it just can't get it. Here's what I get:
Tue Aug 27 15:14:18 2002 : Debug: Thread 1 handling request 0, (1
handled so far)
User-Name = "test"
User-Password = "test"
Called-Station-Id = "8005555555"
Calling-Station-Id = "4198731001"
Tue Aug 27 15:14:18 2002 : Debug: modcall: entering group authorize
Tue Aug 27 15:14:18 2002 : Debug: radius_xlat: Running registered xlat
function of module sql for string ' SELECT '%i' FROM AllowedTollFree
WHERE NPANXX = LEFT('%i', 6)'
Tue Aug 27 15:14:18 2002 : Debug: rlm_sql: - sql_xlat
Thanks,
Aaron Weiker
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html