Accouting time duratin calculation

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

On Wed, Jun 5, 2013 at 2:43 PM, Miha <miha at> 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
, look for "accounting_stop_query". It uses Acct-Session-Time by
default, but you can edit the SQL query yourself.


More information about the Freeradius-Users mailing list