THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#83 - ds_reload fails (MySQL backend)
User who did this - Daniel-Constantin Mierla (miconda)
----------
It should be fixed on GIT, there was an issue when executing MI commands via RPC interface, like is done by sercmd. Can you get latest git branch kamailio_3.0 and try?
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=83#comment109
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
Module: sip-router
Branch: andrei/raw_sock
Commit: 2542c0f30f0ce7cd11c437f19afb53a3b3e9f2a8
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2542c0f…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Tue Aug 10 17:43:25 2010 +0200
raw sockets: freebsd support
Support freebsd and theoretically other BSDs (other BSDs not tested):
- on most BSDs the offset and length of the ip header must be
filled in host byte order (when using raw sockets with
IPHDR_INC).
- no need for user-space fragmentation for raw sockets
- use IP_RECVDSTADDR and IPSENDSRCADDR instead of IP_PKTINFO
(for raw sockets without IPHDR_INC)
- fix ip header length (wrongly computed, on linux it worked
because linux always ignores and overwrites it)
---
raw_sock.c | 133 +++++++++++++++++++++++++++++++++++++++++++++++----------
udp_server.c | 4 +-
2 files changed, 111 insertions(+), 26 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=254…
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#83 - ds_reload fails (MySQL backend)
User who did this - Kim Jakobsson (kjakobsson)
----------
>From tarball.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=83#comment108
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#83 - ds_reload fails (MySQL backend)
User who did this - Daniel-Constantin Mierla (miconda)
----------
Is it 3.0.2 from tarball/packages or is latest git branch kamailio_30?
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=83#comment107
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Kim Jakobsson (kjakobsson)
Attached to Project - sip-router
Summary - ds_reload fails (MySQL backend)
Task Type - Bug Report
Category - Module
Status - Unconfirmed
Assigned To -
Operating System - Linux
Severity - Medium
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - - Kamailio v3.0.2.
- dispathcer module with mysql backend
- Kamailio starts up ok and ds_select_domain() works.
When trying to issue 'ds_reload' with sercmd, the reload fails.
Module configuration:
modparam("dispatcher", "db_url", "mysql://openser:openserrw@localhost/openser")
> **> sercmd mi_fifo ds_list**
>200 OK
SET_NO:: 1
SET:: 1
URI:: sip:127.0.0.1:5060 flag=A
> **> sercmd mi_fifo ds_reload**
>500 ERROR Reloading data
> **> tail -1 /var/log/kamailio.log**
>ERROR: dispatcher [dispatch.c:555]: invalid DB handler
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=83
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
Module: sip-router
Branch: andrei/raw_sock
Commit: fbf0d2e03c019e51281ce569b93843ab0577cc0f
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=fbf0d2e…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Tue Aug 10 11:20:26 2010 +0200
cfg: delay cfg_shmize to just before forking
cfg_shmize() delayed to allow late changes in the default config
(any changes in the default config after cfg_shmize() are ignored).
---
main.c | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/main.c b/main.c
index d157a6b..9b594a0 100644
--- a/main.c
+++ b/main.c
@@ -1285,6 +1285,15 @@ int main_loop()
" (no fork)\n");
}
+ /* delay cfg_shmize to the last moment (it must be called _before_
+ forking). Changes to default cfgs after this point will be
+ ignored.
+ */
+ if (cfg_shmize() < 0) {
+ LOG(L_CRIT, "could not initialize shared configuration\n");
+ goto error;
+ }
+
/* Register the children that will keep updating their
* local configuration */
cfg_register_child(
@@ -1503,6 +1512,14 @@ int main_loop()
* sending) so we open all first*/
if (do_suid()==-1) goto error; /* try to drop privileges */
+ /* delay cfg_shmize to the last moment (it must be called _before_
+ forking). Changes to default cfgs after this point will be
+ ignored (cfg_shmize() will copy the default cfgs into shmem).
+ */
+ if (cfg_shmize() < 0) {
+ LOG(L_CRIT, "could not initialize shared configuration\n");
+ goto error;
+ }
/* init childs with rank==PROC_INIT before forking any process,
* this is a place for delayed (after mod_init) initializations
* (e.g. shared vars that depend on the total number of processes
@@ -2328,11 +2345,6 @@ try_select_again: tval.tv_usec = 0;
goto error;
}
- if (cfg_shmize() < 0) {
- LOG(L_CRIT, "could not initialize shared configuration\n");
- goto error;
- }
-
/* initialize process_table, add core process no. (calc_proc_no()) to the
* processes registered from the modules*/
if (init_pt(calc_proc_no())==-1)
Module: sip-router
Branch: andrei/raw_sock
Commit: 53cc96bd61778fec14ebabd6a6182313bb778aa9
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=53cc96b…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Tue Aug 10 11:16:38 2010 +0200
core: always compile the raw sockets code on linux
Raw sockets support is compiled always on linux.
Note that while the code is there, one still needs to explicitly
enable them in ser.cfg or at runtime (e.g. setting udp4_raw = 1 at
runtime will switch to using raw sockets for sending if possible).
---
Makefile.defs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile.defs b/Makefile.defs
index 1eb19f5..4cc1ee6 100644
--- a/Makefile.defs
+++ b/Makefile.defs
@@ -1628,7 +1628,7 @@ ifeq ($(OS), linux)
use_futex= yes
C_DEFS+=-DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD \
-DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H \
- -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER
+ -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS
ifneq ($(found_lock_method), yes)
#C_DEFS+= -DUSE_POSIX_SEM
C_DEFS+=-DUSE_PTHREAD_MUTEX