<div dir="ltr"><div id="yui_3_7_2_1_1363986695026_3551">Hi All </div><div id="yui_3_7_2_1_1363986695026_3550"><br></div><div id="yui_3_7_2_1_1363986695026_3491">I
am create stored procedure in postgresql database named
"findout_cuncurrent_session_for_a_user_result" that return "Deny" or
"Permit" .</div>
<div id="yui_3_7_2_1_1363986695026_3549"><br></div><div id="yui_3_7_2_1_1363986695026_3494">I
need to call this procedure in session section but it not working i
check all policy that be explaned in unlang man page but this is
not working :</div><div id="yui_3_7_2_1_1363986695026_3495"><br></div><div id="yui_3_7_2_1_1363986695026_3548">session {</div><div id="yui_3_7_2_1_1363986695026_3496"><br>
</div><div id="yui_3_7_2_1_1363986695026_3497"><span class="" style="white-space:pre"> </span>if
("{%sql:select findout_cuncurrent_session_for_a_user_result
('%{User-Name}','%{NAS-IP-Address}','%{Called-Station-Id}','%{Calling-Station-Id}')}"
== "Deny") {</div>
<div id="yui_3_7_2_1_1363986695026_3498"><br></div><div id="yui_3_7_2_1_1363986695026_3554"><span class="" style="white-space:pre"> </span>update control {</div><div id="yui_3_7_2_1_1363986695026_3555"><span class="" style="white-space:pre"> </span>Pool-Name := "Exceeded-Concurrent-Session"<span class="" style="white-space:pre"> </span></div>
<div id="yui_3_7_2_1_1363986695026_3556"><span class="" style="white-space:pre"> </span>}</div><div id="yui_3_7_2_1_1363986695026_3557"><span class="" style="white-space:pre"> </span>}<span class="" style="white-space:pre"> </span></div>
<div id="yui_3_7_2_1_1363986695026_3558">}</div><div id="yui_3_7_2_1_1363986695026_3559"><br></div><div id="yui_3_7_2_1_1363986695026_3560"><br></div><div id="yui_3_7_2_1_1363986695026_3561"><br></div>
<div id="yui_3_7_2_1_1363986695026_3562">What is the problem? Do i write sql query write ? (this query is work fine in sql.conf )</div><div id="yui_3_7_2_1_1363986695026_3563"><br></div></div>