From: matian85(a)hotmail.com
To: sr-users(a)lists.sip-router.org
Subject: problem with db access
Date: Fri, 25 Jan 2013 03:16:18 +0000
Hi everyone,
Recently I work on kamailio's snmpstats module. I'm trying to retrieve some data from database, the code pass the compilation but when starting kamailio always get this error.
Jan 25 10:57:05 localhost kamailio: ERROR: <core> [sr_module.c:572]: ERROR: load_module: could not open module </usr/local/lib/kamailio/modules_k/snmpstats.so>: /usr/local/lib/kamailio/modules_k/snmpstats.so: undefined symbol: db_bind_mod
I take the code from http://www.asipto.com/pub/kamailio-devel-guide/#c09database and ursloc module for example. not sure if I still miss something to make db access work.
Any suggestion?
Thanks,
Sebastian
Hi,
I was looking at some Cassandra stuff and noticed that the
utils/kamctl/dbcassandra/openser directory hadn't been changed to
utils/kamctl/dbcassandra/kamailio
Presumably it should be?
I don't want to change it myself because I am not sure if there are any
scripts or other processes that would be broken by just renaming it.
Regards,
Peter
--
Peter Dunkley
Technical Director
Crocodile RCS Ltd
Hi,
After finding the Cassandra directory that still had the openser name I
did a quick "find" across the Kamailio tree and noticed that:
modules/xmpp/doc/openser-xmpp.cfg
modules/osp/etc/sample-osp-openser.cfg
Have openser in the name. Should these be changed?
Regards,
Peter
--
Peter Dunkley
Technical Director
Crocodile RCS Ltd
Module: sip-router
Branch: master
Commit: 139ae7966a0ff8e5e46a902d9e14dc8840934bd0
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=139ae79…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Jan 24 11:45:31 2013 +0100
core: default compatibility set to SR_COMPAT_MAX
- means that $xy is tried first as pv and if not, then is considered avp
(was default compat mode for default flavour in the past)
- you can still use:
- #!KAMAILIO in config to force SR_COMPAT_KAMAILIO (i.e., $xy must
be a pv, otherwise is error)
- #!SER is config to force SR_COMPAT_SER (i.e., $xy is avp/attr)
---
sr_compat.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/sr_compat.c b/sr_compat.c
index 340dcc3..02e0527 100644
--- a/sr_compat.c
+++ b/sr_compat.c
@@ -31,10 +31,16 @@
#include "sr_compat.h"
+/**
+ * compatibility modes:
+ * - SR_COMPAT_SER - strict compatibiliy with ser ($xy is avp)
+ * - SR_COMPAT_KAMAILIO - strict compatibiliy with kamailio ($xy is pv)
+ * - SR_COMPAT_MAX - max compatibiliy ($xy tried as pv, if not found, is avp)
+ */
#ifdef SR_SER
#define SR_DEFAULT_COMPAT SR_COMPAT_SER
#elif defined SR_KAMAILIO || defined SR_OPENSER
-#define SR_DEFAULT_COMPAT SR_COMPAT_KAMAILIO
+#define SR_DEFAULT_COMPAT SR_COMPAT_MAX
#elif defined SR_ALL || defined SR_MAX_COMPAT
#define SR_DEFAULT_COMPAT SR_COMPAT_MAX
#else
Hello,
the wiki page collecting the guidelines for upgrading from 3.3.x to
4.0.0 is available at:
- http://www.kamailio.org/wiki/install/upgrade/3.3.x-to-4.0.0
I just added the SQL statements needed to upgrade the MySQL database,
but there is lot of other stuff to be added. Hopefully, anyone noticing
changes will add few notes and instructions about how to upgrade.
The wiki can be edited if you make an account, it is not required to be
a developer to add notes to this page. Would be great if users of
postgres will add the sql statements specific for this database type.
Thanks,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
- http://conference.kamailio.com -
Hi,
i am using kamailio 3.3 version please help me with this issue.
1) Registered from SIP end point, kamailio added row in location table
2) Now using same SIP account details, pushed registration entry using *kamctl
ul add , * instead of overwriting the previous contact by new one it
inserts another new row in the location table
3) Total now 2 rows with same username are present in DB.
I am using save("location", "0x04") so before inserting new row it should
check whether already entry is there or not, if there should update the
same row.
I look forward to your reply.
Thanks
Ram