[OpenSIPS-Users] question about cachedb_sql

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Dec 10 18:57:53 CET 2013


Hi Mike,

You need first to configure the cachedb_sql, to tell it where the SQL db is:
modparam("cachedb_sql", "db_url","mysql://localhost/my_database");

Then, in the dialog module, you need to point the noSQL connector to the 
previous module:
modparam("dialog", "cachedb_url", "sql://")

Give it a try and let me know.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 07.12.2013 17:03, Mike Tesliuk wrote:
> Hello Guys,
>
> I try to implement (for test purpose) the cachedb_sql but i cant use 
> this on dialog module, i start the module , i have the database , but 
> when i call over dialog i put the cachedb_url as 
> "sql://localhost/opensips" (im using sql because is what beeing 
> exported on debug )
>
> Dec  5 23:41:47 [5953] DBG:core:register_cachedb: registered cachedb 
> system [sql]
> Dec  5 23:41:47 [5953] DBG:core:parse_cachedb_url: parsing [sql://]
> Dec  5 23:41:47 [5953] DBG:core:parse_cachedb_url: Just scheme, no 
> actual url
>
> so, when i try to call this on dialog i receive
>
> Dec  5 23:41:47 [5953] ERROR:cachedb_sql:dbcache_new_connection: bogus 
> url for local cachedb
> Dec  5 23:41:47 [5953] ERROR:core:cachedb_do_init: failed to open 
> connection
> Dec  5 23:41:47 [5953] ERROR:dialog:init_cachedb_utils: cannot connect 
> to cachedb_url sql://localhost/cachedb
> Dec  5 23:41:47 [5953] ERROR:dialog:mod_init: cannot init cachedb utils
> Dec  5 23:41:47 [5953] ERROR:core:init_mod: failed to initialize 
> module dialog
> Dec  5 23:41:47 [5953] ERROR:core:main: error while initializing modules
>
>
>
> so, there is not possible to use cachedb_sql with dialog or im doing 
> something wrong ?
>
>
>
>
> _______________________________________________
> 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/20131210/b3f2e86b/attachment.htm>


More information about the Users mailing list