[OpenSIPS-Users] [RFC] Default value of db_url in OpenSIPS

Kamen Petrov kamen.petrov at gmail.com
Sat Apr 16 19:41:15 CEST 2011


+1 for Erik

and
+1 from me :)


We should be able to do as less DB operations as possible. A couple things
are enough to be kept only in the RAM.

In my setup I'm utilizing the memcache and JSON a lot, so the only place
where I really need db_url is with the avpops module.
*
Thanks
-- Kamen*


On 14 April 2011 15:56, Erik Dekkers <erik.dekkers at wvds.nl> wrote:

> +1 for me
>
>
>
> *Van:* users-bounces at lists.opensips.org [mailto:
> users-bounces at lists.opensips.org] *Namens *Bogdan-Andrei Iancu
> *Verzonden:* donderdag 14 april 2011 13:03
> *Aan:* users at lists.opensips.org
> *Onderwerp:* [OpenSIPS-Users] [RFC] Default value of db_url in OpenSIPS
>
>
>
> Hi all,
>
> Following some discussions on the value of db_url, we end up with the idea
> of chancing the way of definition the db_url in opensips.
>
> The problem with the current approach (having builtin - hidden- default
> values) is confusing as, if you do no explicitly set a db_url, the modules
> will try do connect to the default db_url, without you even knowing that.
>
> So the idea is to remove the builtin default value and to have a new global
> parameter in opensips cfg to define the default value for db_urls.
> This will allow:
>     - to have single default db_url for simple default scripts (as we have
> now)
>     - to see (no mote hidden) the default value for db_url in your cfg
>     - to change the default db_url without re-compilling
>     - still be able to individually change the db_urls for each module...
>
> Already there are three +votes for this, but I would like to see other
> opinions on that....pro or against :)
>
> Regards,
> Bogdan
>
>
> On Wed, Apr 13, 2011 at 3:22 PM, Bogdan-Andrei Iancu <bogdan at opensips.org>
> wrote:
>
> Or maybe, to make everyone happy, to have a global cfg parameter for
> defining a default db_url. This will be used to populate the db_urls from
> the module.
>
>
> So, the default value will be explicitly set in the opensips cfg -> no way
> to miss it, also easy to roll out a simple default cfg.
>
>
>
> --
>
>
> Bogdan-Andrei Iancu
>
> OpenSIPS eBootcamp - 2nd of May 2011
>
> OpenSIPS solutions and "know-how"
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110416/f6190aac/attachment.htm>


More information about the Users mailing list