Accouting time duratin calculation

Fajar A. Nugraha list at fajar.net
Wed Jun 5 10:25:30 CEST 2013


On Wed, Jun 5, 2013 at 2:43 PM, Miha <miha at softnet.si> wrote:
> Hi,
>
> how does freeradius calculate duration time? My NAS sends start and stop
> packet. In mysql table I can see accstarttime and accstoptime. Is the
> duration time automaticly created from start time and stop time or should
> NAS also send duration time?
>
> In other words is it possbile that freeradius automaticly calculate duration
> from start and stop packet:)?

Should be possible. See
https://github.com/FreeRADIUS/freeradius-server/blob/v2.x.x/raddb/sql/mysql/dialup.conf
, look for "accounting_stop_query". It uses Acct-Session-Time by
default, but you can edit the SQL query yourself.

--
Fajar


More information about the Freeradius-Users mailing list