Get Stop in accounting do some action
Arran Cudbard-Bell
a.cudbardb at freeradius.org
Sun Mar 3 18:00:01 CET 2013
On 3 Mar 2013, at 11:32, Mehdi Ravanbakhsh <babakco at 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>
}
}
More information about the Freeradius-Users
mailing list