<div dir="ltr"><font face="trebuchet ms, sans-serif">Dear Arran C. Bell,</font><div><font face="trebuchet ms, sans-serif"><br></font></div><div><font face="trebuchet ms, sans-serif">Thank you very much, i am extremely grateful for your advise and guidelines for troubleshoot also. i am currently experimenting a different rlm_sqlcounter using CoovaChilli dictionary "All-In-MB". In result, i can store short number in db</font><span style="font-family:'trebuchet ms',sans-serif">. This counter would reset at 2TB with same 32bit number. i have actually tested up to 6GB. it just works!!!. Next test is in progress to logout user when 7GB downloaded. i really appreciated your input and TIME. </span></div>
<div><font face="trebuchet ms, sans-serif"><br></font></div><div><font face="trebuchet ms, sans-serif">i will try your proposed solution as well after "All-In-MB" has tested. </font><span style="font-family:'trebuchet ms',sans-serif">After the successful practical of both solutions. i would like to document this topic on one page for archives, so that it can help others. i may need your support incase</span><font face="trebuchet ms, sans-serif"> i came across some challenges during the test of</font><span style="font-family:'trebuchet ms',sans-serif"> your solution. </span></div>
<div><font face="trebuchet ms, sans-serif"><br></font></div><div><font face="trebuchet ms, sans-serif">Thanks once again !!!</font></div><div><br></div><div><font face="trebuchet ms, sans-serif">Regards --RM</font></div><div>
<font face="trebuchet ms, sans-serif"><br></font></div><div><font face="trebuchet ms, sans-serif"><br></font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 8, 2013 at 12:16 PM, Arran Cudbard-Bell <span dir="ltr"><<a href="mailto:a.cudbardb@freeradius.org" target="_blank">a.cudbardb@freeradius.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">><br>
><br>
> It might actually be an idea to add those to the internal dictionary to make it a bit easier.<br>
<br>
</div>Just to clarify there are two reasons why your current config isn't working:<br>
1. rlm_sql stores the value as a proper 64bit integer, not in the two 32bit chunks represented by Acct-Input-Gigawords and Acct-Input-Octets. When this value is pulled out into rlm_sqlcounter the value is truncated because internally it only deals with 32bit unsigned ints. I've now fixed this.<br>

<br>
2. You're comparing gigawords to bytes, with no conversion, so even with the updated module you'll find the user is rejected way way too early.<br>
<br>
You also invented "counter-type" and "check-unit" config pairs. The server isn't magic, just because it doesn't error out, doesn't mean it knows about those config pairs or will use values assigned to them.<br>

<div class="HOEnZb"><div class="h5"><br>
Arran Cudbard-Bell <<a href="mailto:a.cudbardb@freeradius.org">a.cudbardb@freeradius.org</a>><br>
FreeRADIUS Development Team<br>
<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</div></div></blockquote></div><br></div>