Dear Arran

many thanks for your help

i have another question : who can i access to Acctuniqueid  of  the record  in this unlang script and in Perl script ?




  


On Sun, Mar 3, 2013 at 8:30 PM, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:

On 3 Mar 2013, at 11:32, Mehdi Ravanbakhsh <babakco@gmail.com> wrote:

> Hello everyone
>
> I need to update some check and replay  attribute in database when get stop in accounting  and the session is finish
>
> i need to know  in which section of  virtual server file (  sites-enabled/default) i need to put unlang script (and/or perl script) ?
>
> and
>
> how i can check in script if accounting get stop packet ,  .

preacct {
        if (Acct-Status-Type == 'Stop') {
                <read  some radacct fild of that session to do some calculate and do some query in database in radcheck and radreplay>
        }
}

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