Freeside:1.7:Documentation:Developer/FS/part export/sqlradius

From Freeside
< Freeside:1.7:Documentation:Developer‎ | FS‎ | part export
Revision as of 18:15, 3 October 2007 by Ivan (talk | contribs) (import from POD)

Jump to: navigation, search
usage_sessions TIMESTAMP_START TIMESTAMP_END [ SVC_ACCT [ IP [ PREFIX [ SQL_SELECT ] ] ] ]
TIMESTAMP_START and TIMESTAMP_END are specified as UNIX timestamps; see "time" in perlfunc. Also see Time::Local and Date::Parse for conversion functions.
SVC_ACCT, if specified, limits the results to the specified account.
IP, if specified, limits the results to the specified IP address.
PREFIX, if specified, limits the results to records with a matching Called-Station-ID.
  1. SQL_SELECT defaults to * if unspecified. It can be useful to set it to #SUM(acctsessiontime) or SUM(AcctInputOctets), etc.
Returns an arrayref of hashrefs with the following fields:
username
; framedipaddress:; acctstarttime:; acctstoptime:; acctsessiontime:; acctinputoctets:; acctoutputoctets:; calledstationid; update_svc_acct

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 506:
'=item' outside of any '=over'