WHERE AcctStopTime = 0 \
AND NASIPAddress = '%{NAS-IP-Address}' \
AND AcctStartTime <= ${....event_timestamp}"
+
+ #
+ # If there are no open user sessions, then the previous query
+ # will return "no rows updated". The server will then fall through
+ # to the next query, which is just "yes, that's fine".
+ #
+ query = "SELECT true"
}
accounting-off {
query = "${..accounting-on.query}"
+
+ query = "SELECT true"
}
#
WHERE acctstoptime IS NULL \
AND nasipaddress = '%{NAS-IP-Address}' \
AND acctstarttime <= ${....event_timestamp}"
+
+ #
+ # If there are no open user sessions, then the previous query
+ # will return "no rows updated". The server will then fall through
+ # to the next query, which is just "yes, that's fine".
+ #
+ query = "SELECT true"
}
accounting-off {
query = "${..accounting-on.query}"
+
+ query = "SELECT true"
}
#
WHERE AcctStopTime IS NULL \
AND NASIPAddress= '%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}}' \
AND AcctStartTime <= ${....event_timestamp}"
+
+ #
+ # If there are no open user sessions, then the previous query
+ # will return "no rows updated". The server will then fall through
+ # to the next query, which is just "yes, that's fine".
+ #
+ query = "SELECT true"
}
accounting-off {
query = "${..accounting-on.query}"
+
+ query = "SELECT true"
}
#
WHERE acctstoptime IS NULL \
AND nasipaddress = '%{NAS-IP-Address}' \
AND acctstarttime <= ${....event_timestamp}"
+
+ #
+ # If there are no open user sessions, then the previous query
+ # will return "no rows updated". The server will then fall through
+ # to the next query, which is just "yes, that's fine".
+ #
+ query = "SELECT true"
}
accounting-off {
query = "${..accounting-on.query}"
+
+ query = "SELECT true"
}
#