<div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);color:rgb(80,0,80)"><div style="color:rgb(34,34,34)">Hi all, I am running Freeradius 1.1.7, mysql and coovachilli.</div><div style="color:rgb(34,34,34)">
<br></div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I need a access plan of a maximum 2 hours per day per mac address. We want users to click an enter button rather than using vouchers/usernames, etc,</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div style="margin:5px 0px"></div><div style="color:rgb(80,0,80)"><div style="color:rgb(34,34,34)"><br></div><div style="color:rgb(34,34,34)">
How do I tie the mac address and not a username to max daily session?</div><div style="color:rgb(34,34,34)"><br></div><div style="color:rgb(34,34,34)">Do I change the sqlcounter dailycounter key from user-name to callingstatinID</div>
<div style="color:rgb(34,34,34)">Can the dailycounter query be rewritten with callingstationID rather than UserName?</div><div style="color:rgb(34,34,34)"><br></div><div style="color:rgb(34,34,34)"><span style="white-space:pre-wrap">             </span>query = "SELECT SUM(AcctSessionTime - GREATEST((%b - UNIX_TIMESTAMP(AcctStartTime)), 0)) FROM radacct WHERE UserName='%{%k}' AND UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime > '%b'"</div>
<div style="color:rgb(34,34,34)"><br></div><div style="color:rgb(34,34,34)">Am I on the right track here?</div></div></div>