[Serusers] Uri module without Database
Martin Koenig
martin.koenig at toplink-plannet.de
Thu Oct 14 09:29:16 CEST 2004
Hi Marian,
The patch itself looks fine, but it is not working so far.
The debug output reads:
0(18168) DEBUG: init_mod: uri
0(18168) uri - initializing
0(18168) find_export: <db_use_table> not found
0(18168) uri:mod_init(): No database module found
0(18168) init_mod(): Error while initializing module uri
ERROR: error while initializing modules
Ser.cfg has the following uri.so-related lines:
loadmodule "/usr/local/lib/ser/modules/uri.so"
modparam("uri", "db_url", "")
modparam("uri", "use_uri_table", 0)
Do i still need to load the mysql.so module, although no connection will be
made?
Thanks alot,
Best regards,
Martin
> -----Original Message-----
> From: Marian Dumitru [mailto:marian.dumitru at voice-sistem.ro]
> Sent: Wednesday, October 13, 2004 5:50 PM
> To: Martin Koenig
> Cc: serusers at lists.iptel.org
> Subject: Re: [Serusers] Uri module without Database
>
> Hi Martin,
>
> as it is on cvs, the DB connection is mandatory for the uri
> module - it
> is not a requirement, but a design choice.
>
> I attached a small patch (for 0.8.14) which will allow you to set the
> module parameter "db_url" to an empty value/string and to
> disable the DB
> support. Use:
> modparam("uri", "db_url", "" )
>
> NOTE that the functions "does_uri_exist()" and "is_user()" (in
> combination with "use_uri_table" parameter) will not work in
> this case.
> Please let me know if it works for you.
>
> Best regards,
> Marian Dumitru
>
> Martin Koenig wrote:
> > Hi list,
> >
> > I need to setup a radius-only ser. Is it possible to make use of the
> > check_to and check_from functions from the uri.so module
> without loading a
> > mysql or other database module?
> >
> > Thank you,
> >
> > regards,
> > Martin
> >
> > _______________________________________________
> > Serusers mailing list
> > serusers at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
> >
>
> --
> Voice Sistem
> http://www.voice-sistem.ro
>
More information about the sr-users
mailing list