<div dir="ltr">Dear <span style="font-family:arial,sans-serif;font-size:12.800000190734863px;font-weight:bold;white-space:nowrap">Arran</span><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px;font-weight:bold;white-space:nowrap"><br>
</span></div><div style><span style="font-family:arial,sans-serif;font-size:12.800000190734863px;font-weight:bold;white-space:nowrap">many thanks for your help</span></div><div style><span style="font-family:arial,sans-serif;font-size:12.800000190734863px;font-weight:bold;white-space:nowrap"><br>
</span></div><div style><font face="arial, sans-serif"><b><span style="white-space:nowrap">i have another question : who can i access to Acctuniqueid of the record in this unlang script and in Perl script ?</span></b></font></div>
<div style><font face="arial, sans-serif"><b><span style="white-space:nowrap"><br></span></b></font></div><div style><br></div><div style><font face="arial, sans-serif"><b><span style="white-space:nowrap"><br></span></b></font></div>
<div style><font face="arial, sans-serif"><b><span style="white-space:nowrap"><br></span></b></font></div><div style><font face="arial, sans-serif"><b><span style="white-space:nowrap"> </span></b></font></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Mar 3, 2013 at 8:30 PM, Arran Cudbard-Bell <span dir="ltr"><<a href="mailto:a.cudbardb@freeradius.org" target="_blank">a.cudbardb@freeradius.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On 3 Mar 2013, at 11:32, Mehdi Ravanbakhsh <<a href="mailto:babakco@gmail.com">babakco@gmail.com</a>> wrote:<br>
<br>
> Hello everyone<br>
><br>
> I need to update some check and replay attribute in database when get stop in accounting and the session is finish<br>
><br>
> i need to know in which section of virtual server file ( sites-enabled/default) i need to put unlang script (and/or perl script) ?<br>
><br>
> and<br>
><br>
</div>> how i can check in script if accounting get stop packet , .<br>
<br>
preacct {<br>
if (Acct-Status-Type == 'Stop') {<br>
<div class="im"> <read some radacct fild of that session to do some calculate and do some query in database in radcheck and radreplay><br>
}<br>
}<br>
<br>
</div>-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</blockquote></div><br></div>