On Thu, 2002-02-21 at 17:37, Alan DeKok wrote:
> Gillou <[EMAIL PROTECTED]> wrote:
> > If I use reser = never, can I reset the counter manualy with a given value
> > with a small perl script or C prog ?
>
> There is currently no way to do this.
>
> It shouldn't be hard to do from a small program.
>
> Alan DeKok.
I want to read/update this database too.
But the counter module is opening the db.counter file with locking.(the
default operation of the gdbm library is to open a file locked)
See:
Python 1.5.2 (#1, Jul 5 2001, 03:02:19) [GCC 2.96 20000731 (Red Hat
Linux 7.1 2 on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import gdbm
>>> db = gdbm.open('./db.counter', 'ru')
Traceback (innermost last):
File "<stdin>", line 1, in ?
gdbm.error: (11, 'Resource temporarily unavailable')
How can we update/read this database when freeradius is running?
A option to add to the counter module is to set decrement of an
accounting attribute instead of an increment.
So, somebody can offer a prepaid service of 25h/month, and increase the
customer time if he call one phone number or something similar.(if we
resolve the db locking problem)
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html