cuncurrent-session control
Arran Cudbard-Bell
a.cudbardb at freeradius.org
Tue Mar 19 23:25:28 CET 2013
On 19 Mar 2013, at 18:15, Mehdi Ravanbakhsh <babakco at gmail.com> wrote:
> Hello ALL
>
> I have Some problem in using Unlang.
>
> I need to call some function in PostgreSQL database send some parameter from request attribute to it , get replay from function and then change some check attribute item (such as Pool-Name).or replay attribute
>
>
> Unlang :
>
> cuncurrent-session-status =”{%sql:select public.findout_cuncurrent_sessions_for_a_user(%{request:User-Name},%{request:Acct-Session-Id},%{request:NAS-IP-Address},%{request:NAS-Port})}”;
> if (cuncurrent-session-status=='Accept')
> {
> ok
> }
> elseif (cuncurrent-session-status=='Reject')
> {
> update control
> {Pool-Name='Exceeded-Concurrent-Session'}
>
> }
>
>
> i know that i have some mistake in script but i can not find where !!!!!
wow...
man unlang
-Arran
More information about the Freeradius-Users
mailing list