[Serusers] Uri module without Database
Martin Koenig
martin.koenig at toplink-plannet.de
Thu Oct 14 10:10:37 CEST 2004
Hello Marian,
I worked a little bit on the patch, and the code in uri_mod.c needs to look
like this:
if (strlen(db_url)==0) {
if (use_uri_table) {
LOG(L_ERR, "uri:mod_init(): database disabled, "
"\"use_uri_table\" set -> conflict\n");
return -1;
}
DBG("uri:mod_init(): not binding to database module\n");
db_url = 0;
} else {
if (bind_dbmod()) {
LOG(L_ERR, "uri:mod_init(): No database module found\n");
return -1;
}
}
It seems to work with this. There may not be a bind_dbmod()-call, or else
stuff will go wrong.
Maybe you can review this and put it in your patch.
Thanks again,
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