I think he wants "Session-Octets-Limit" to be sent back for limiting traffic passed thru for each user. I've changed the plain counter module so it sends back my attribute ;), and I think this could be done for sqlcounter as well.
I really don't know why everybody is telling that such config would be impossible. It worked for me, so do I have to write a patch that would allow users to switch between time and traffic accounting/limiting in sqlcounter module, or could the professionals do that ? Nicolas - the reply-name option is used for what? For sending back the value in an specific attribute? Couldn't this be used for Damjan's purpose then? Regards, Edvin -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nicolas Baradakis Sent: Dienstag, 20. Dezember 2005 11:48 To: FreeRadius users mailing list Subject: Re: rlm_sqlcounter and something else than Session-Timeout Damjan wrote: > I limit users by bytes transfered, so I need to sum AcctInputOctets > and AcctOutputOctets, compare that sum to a check attribute (let's > call it Max-All-Transfer) and return a coresponding > ChilliSpot-Max-Total-Octets. > > I beleive this is not configurable in rlm_sqlcounter? Indeed. > I could try to make a patch if someone is willing to help me and guide > me a bit. I'd suggest to make the reply attribute user-defined (like the check attribute). You might add an option "reply-name" with "Session-Timeout" as the default value, so it doesn't break someone else's setup. -- Nicolas Baradakis - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html