I'm geting this error when trying to run kamailio svn trunk version
... May 23 22:27:30 [17510] INFO:core:init_mod: initializing module usrloc May 23 22:27:30 [17510] INFO:usrloc:ul_init_locks: locks array size 512 May 23 22:27:30 [17510] ERROR:core:db_check_api: module db_postges does not export db_use_table function May 23 22:27:30 [17510] ERROR:usrloc:mod_init: failed to bind database module May 23 22:27:30 [17510] ERROR:core:init_mod: failed to initialize module usrloc May 23 22:27:30 [17510] ERROR:core:main: error while initializing modules ...
Any clue?
Hello,
On 05/24/2009 12:30 AM, Raúl Alexis Betancor Santana wrote:
I'm geting this error when trying to run kamailio svn trunk version
... May 23 22:27:30 [17510] INFO:core:init_mod: initializing module usrloc May 23 22:27:30 [17510] INFO:usrloc:ul_init_locks: locks array size 512 May 23 22:27:30 [17510] ERROR:core:db_check_api: module db_postges
looks like there is a typo in the db_postgres name (you miss r or?!?).
If you want to play with development version, then you should take the sources from GIT http://sip-router.org. It is the place where the development is done now.
Cheers, Daniel
does not export db_use_table function May 23 22:27:30 [17510] ERROR:usrloc:mod_init: failed to bind database module May 23 22:27:30 [17510] ERROR:core:init_mod: failed to initialize module usrloc May 23 22:27:30 [17510] ERROR:core:main: error while initializing modules ...
Any clue?
On Sunday 24 May 2009 08:38:42 Daniel-Constantin Mierla wrote:
Hello,
On 05/24/2009 12:30 AM, Raúl Alexis Betancor Santana wrote:
I'm geting this error when trying to run kamailio svn trunk version
... May 23 22:27:30 [17510] INFO:core:init_mod: initializing module usrloc May 23 22:27:30 [17510] INFO:usrloc:ul_init_locks: locks array size 512 May 23 22:27:30 [17510] ERROR:core:db_check_api: module db_postges
looks like there is a typo in the db_postgres name (you miss r or?!?).
If you want to play with development version, then you should take the sources from GIT http://sip-router.org. It is the place where the development is done now.
Also .. on db_postgres.c we have ...
[...] int db_postgres_bind_api(db_func_t *dbb) { if(dbb==NULL) return -1;
memset(dbb, 0, sizeof(db_func_t));
dbb->use_table = db_postgres_use_table; dbb->init = db_postgres_init; [...]
So db_use_table is exported .. or am I missing something ?
Moreover km_db_postgres on sip-router do the same, it's the same source code ...
On 05/24/2009 10:56 AM, Raúl Alexis Betancor Santana wrote:
Moreover km_db_postgres on sip-router do the same, it's the same source code ...
You misunderstood my email in the first place, see the previous email. The error is in your config, you haven't written correctly 'postgres' in the db_url parameter of usrloc.
Cheers, Daniel
On Sunday 24 May 2009 08:59:38 Daniel-Constantin Mierla wrote:
On 05/24/2009 10:56 AM, Raúl Alexis Betancor Santana wrote:
Moreover km_db_postgres on sip-router do the same, it's the same source code ...
You misunderstood my email in the first place, see the previous email. The error is in your config, you haven't written correctly 'postgres' in the db_url parameter of usrloc.
Cheers, Daniel
Jejeje, you are right.. I'm just using my first m4 version of the .cfg and don't saw that .. XDD
On 05/24/2009 10:54 AM, Raúl Alexis Betancor Santana wrote:
On Sunday 24 May 2009 08:38:42 Daniel-Constantin Mierla wrote:
Hello,
On 05/24/2009 12:30 AM, Raúl Alexis Betancor Santana wrote:
I'm geting this error when trying to run kamailio svn trunk version
... May 23 22:27:30 [17510] INFO:core:init_mod: initializing module usrloc May 23 22:27:30 [17510] INFO:usrloc:ul_init_locks: locks array size 512 May 23 22:27:30 [17510] ERROR:core:db_check_api: module db_postges
The error is that in your config you wrote wrong the name of the module -- it is not 'db_postges' as you can see in the message above, but 'db_postgres' -- check your db_url parameters and see where 'postgres' is written wrongly.
Cheers, Daniel
looks like there is a typo in the db_postgres name (you miss r or?!?).
If you want to play with development version, then you should take the sources from GIT http://sip-router.org. It is the place where the development is done now.
Also .. on db_postgres.c we have ...
[...] int db_postgres_bind_api(db_func_t *dbb) { if(dbb==NULL) return -1;
memset(dbb, 0, sizeof(db_func_t));
dbb->use_table = db_postgres_use_table; dbb->init = db_postgres_init; [...]
So db_use_table is exported .. or am I missing something ?