I am doing the same thing using chilli, freeradius, and mysql.  I use 
Max-All-Sessions and wrote a counter for it.  Of course my cards are good for 
x seconds.  Using Session-Timeout would mean that a session could be x 
seconds long but as soon as you log back in you can have another x seconds. 

CP

On Wednesday 08 December 2004 09:59, Neil Craig wrote:
> Hi all
>
> I'm looking to implement a prepaid card type service - I plan on using
> Session-Timeout to disconnect the users. How does freeradius keep
> track of the time elapsed while connected? I am holding all the info
> in SQL - I guess when a user connects it counts down until 0 then
> sends the signal to the NAS to disconnect - if the user reconnects it
> is back to the original value.
> How can I have a counter that doesn't expire - say the user 'topped
> up' by 30 days worth on the 9th of the month - it wouldn't expire
> until 30 days from then (so couldn't use  monthly counters?)
>
> Regards
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to