<div>Hi Ivan, </div>
<div> </div>
<div>thanks for your response. Unfortunately your response cut over with my response to a previous mail list contributor. I had made some progress with unlang and described my progress in there. I have run against a wall though, when I discovered that I cannot perform any unlang actions after the rlm_sql_counter module issued a reject. Freeradius seems to stop any processing of further modules within the authorisation section, once a reject occurs within rlm_sqlcounter. </div>

<div> </div>
<div>I had attached debugging and code extracts in the other response. I won't tire you with repetition.</div>
<div>
<div> </div></div>
<div>
<div>Unless I can get freeradius to process the steps in authorize AFTER a reject is issued by rlm_sqlcounter, I cannot see how the suggested solutions for issues 1 and 3 can work.</div>
<div> </div>
<div>Any idea how to resolve the issue described above?</div>
<div> </div>
<div>Thanks for the suggestion for issue 2.</div>
<div> </div>
<div>Cheers</div>
<div> </div>
<div>Hanno </div>
<div> </div></div>
<div> </div>
<div>Subject: Re: SQLCounter configuration<br>>1)      After the time or data volume for a period (say a month) is reached<br>>the user is automatically disconnected - as expected. Rather them not<br>>allowing to log in , I would like freeradius to return some other attributes<br>
>(WISPr-Bandwidth-Max-Up and WISPr-Bandwidth-Max-Down work fine with<br>>ChilliSpot) to be sent to the router for the user, so that a connection is<br>>still possible, but at a much lower maximum speed. Can that be done, and if<br>
>so, can someone give me a pointer. I was thinking maybe using unlang, but I<br>>may be barking up the wrong tree.<br>></div>
<p>Create a  sql group called slow that enforces those limits. Add the user<br>to that group (with low priority) with unlang (on authentication) or<br>perl sript (on accounting stop packet). Important - remove slow group<br>
entries when counter resets.</p>
<p>>2)      The   reset = monthly   method seem to the first of the current<br>>month. That is one way of doing it, but I would like the reset to occur at<br>>the same date in the month every month. So if someone signs up, say on the<br>
>12th of a month, the reset will occur every month on the 12th. Can that be<br>>done with freeradius?<br>></p>
<div>Yes. Queries are configurable. Don't use %b. Calculate start the way you<br>see fit.</div>
<p>>3)      Currently I receive something like   Reply-Message = "Your maximum<br>>never usage time has been reached"   when the counter reaches its limit -<br>>even when what was counted as not time but data volume. Can Reply-Message<br>
>for sqlcounter be configured as in the expiration module?<br>></p>
<p>No. But you can sort out the reply with unlang.</p>
<p>Ivan Kalik<br>Kalik Informatika ISP<br></p>