cuncurrent-session control

Mehdi Ravanbakhsh babakco at gmail.com
Tue Mar 19 23:15:01 CET 2013


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 !!!!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20130320/44a83a25/attachment.html>


More information about the Freeradius-Users mailing list