Can i use use a function in authorise_reply_query in postgresql.conf file.

I mean can i specify a function which returns five values : id, username,
Attribute, value,op

Like this :
authorise_reply_query = "SELECT my_function( %{SQL-User-Name},
%{called-station-id})"

my_function will return a single row with multiple coloums having value of
id , username, Attribute, value, op.
Is this possible ??

I need this in a prepaid VOIP scenario where session-timeout would be
dynamic depending on what number one has dialed.


Thanxs

Deepak Singhal



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

Reply via email to