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