> -----Original Message-----
> From: Alan DeKok [mailto:[EMAIL PROTECTED]] 
> "Aaron T. Weiker" <[EMAIL PROTECTED]> wrote:
> > 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 =3D=3D `%{sql: SELECT '%i' FROM
> > AllowedTollFree WHERE NPANXX =3D LEFT('%i', 6)`

>   Try hard-coding the SELECT to *not* use %i, and see if it 
> works.  If so, then the sql_xlat() function has to be patched 
> to get excited over '%', and to call radius_xlat().

Just hardcoded in the variable and that appears to work.

Aaron

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to