On Wed, Jun 5, 2013 at 2:43 PM, Miha <m...@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 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html