Module: sip-router
Branch: master
Commit: c4505aab3b2a945de126b617902382554837df3a
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c4505aa…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Feb 4 20:50:36 2010 +0100
debugger: removed completed task from to-do
- fixed the description of inner command for dbg.bp
---
modules/debugger/README | 8 ++------
modules/debugger/doc/debugger_admin.xml | 12 ++----------
2 files changed, 4 insertions(+), 16 deletions(-)
diff --git a/modules/debugger/README b/modules/debugger/README
index 4b4149f..e0b8a1f 100644
--- a/modules/debugger/README
+++ b/modules/debugger/README
@@ -282,8 +282,8 @@ if($si=="10.0.0.10")
Name: dbg.bp
Parameters:
- * _cmd_ : inner command can be 'on' or 'off' to enable or disable the
- tracing for one or all processe.
+ * _cmd_ : inner command, see next section for the list of available
+ values.
* _pid_ : pid for which to apply the inner command. If it missing,
then will be applied for all processes.
* _params_ : extra params specific for each inner command.
@@ -393,10 +393,6 @@ sercmd> dbg.bp move 10481
7. To-do
The 'MUSTS' and ideas of what can be done:
- * many internal parameters not yet exported to cfg: log level for
- printed messages, log facility, sleep time while waiting at
- breakpoint, number of iterations to wait for response from SIP
- router process ... they are now global variables inside module.
* Complete breakpoint setting and usage on specific lines.
* Make the output more human friendly - text can be used instead of
integer values for some fields such as state. Also, for some
diff --git a/modules/debugger/doc/debugger_admin.xml b/modules/debugger/doc/debugger_admin.xml
index c65851e..b774bdf 100644
--- a/modules/debugger/doc/debugger_admin.xml
+++ b/modules/debugger/doc/debugger_admin.xml
@@ -317,8 +317,8 @@ if($si=="10.0.0.10")
</para>
<para>Parameters:</para>
<itemizedlist>
- <listitem><para>_cmd_ : inner command can be 'on' or 'off' to
- enable or disable the tracing for one or all processe.</para>
+ <listitem><para>_cmd_ : inner command, see next section for
+ the list of available values.</para>
</listitem>
<listitem><para>_pid_ : pid for which to apply the inner command.
If it missing, then will be applied for all processes.</para>
@@ -477,14 +477,6 @@ sercmd> dbg.bp move 10481
</para>
<itemizedlist>
<listitem>
- <para>many internal parameters not yet exported to cfg:
- log level for printed messages, log facility, sleep time while
- waiting at breakpoint, number of iterations to wait for response
- from SIP router process ... they are now global variables inside
- module.
- </para>
- </listitem>
- <listitem>
<para>
Complete breakpoint setting and usage on specific lines.
</para>
Hi,
few details about the new module mqueue. It provides a generic message
queue for SIP Router inter process communication. Items in the queue are
pairs of (key, value), both string. The items are consumed in the order
they were added in the queue (first in first out).
More details at:
http://sip-router.org/docbook/sip-router/branch/master/modules/mqueue/mqueu…http://sip-router.org/wiki/cookbooks/pseudo-variables/devel#mqueue_module_p…
The module is handy to use for time consuming and/or blocking operations
(eg, email notifications). Not to hold the SIP worker process, you can
add an item in a queue that is going to be consumed by another process
(like timer processes created via rtimer module).
Best regards,
Ramona
Hello,
I want to make s/k modules with -j 3 . Thus specifying 3 parallel jobs
(Hehe I have one of those fancy SMP machines). The problem is this:
>make -j 3
....
make[1]: Entering directory `/home/marius/dev/sip-router/modules/avpops'
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent
make rule.
....
Problem description is here
http://lists.samba.org/archive/distcc/2004q1/002160.html(I also checked
the gnu make manual and this mail is a rather complete copy-paste of the
section in question)
A description of the jobserver implementation in here
http://make.paulandlesley.org/jobserver.html.
The code in the Makefile which causes this is :
.PHONY: $(1)
$(1): modules.lst
@for r in $($(1)) "" ; do \
if [ -n "$$$$r" -a -r "$$$$r/Makefile" ]; then \
$(call oecho, "" ;) \
$(call oecho, "" ;) \
if $(MAKE) -C $$$$r $$(mk_params) || [ ${err_fail} != 1 ] ;
then \
:; \
else \
exit 1; \
fi ; \
fi ; \
done; true
Because I thought the problem might be with the for construct(make
launches a new shell) I have replaced this with
.PHONY: $(1)
$(1): modules.lst
@$(foreach r,$($(1)),$(call module_make,$(r),$(mk_params)))
And in Makefile.rules I've added
module_make= if [ -n "$(1)" -a -r "$(1)/Makefile" ]; then \
$(call oecho, "" ;) \
$(call oecho, "" ;) \
( $$(MAKE) -C $(1) $(2) || [ ${err_fail} != 1 ] ) || exit 1; \
fi ; \
This fixed the warning and multiple make jobs work fine now with make
modules.
So. Do I push?!
Marius
Module: sip-router
Branch: master
Commit: db73ecee1755342b2511153c3936a16edcca8161
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=db73ece…
Author: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Date: Thu Feb 4 11:24:36 2010 +0200
modules_k/siputils : Forgot to commit config.* files
I broke the build...
---
modules_k/siputils/config.c | 51 +++++++++++++++++++++++++++++++++++++++++++
modules_k/siputils/config.h | 38 ++++++++++++++++++++++++++++++++
2 files changed, 89 insertions(+), 0 deletions(-)
diff --git a/modules_k/siputils/config.c b/modules_k/siputils/config.c
new file mode 100644
index 0000000..4294f27
--- /dev/null
+++ b/modules_k/siputils/config.c
@@ -0,0 +1,51 @@
+/*
+ * $Id$
+ * This file is part of SIP-router, a free SIP server.
+ *
+ * SIP-router is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version
+ *
+ * SIP-router is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * History
+ * -------
+ * 2008-02-05 adapting tm module for the configuration framework (Miklos)
+ */
+
+/*!
+ * \file
+ * \brief Siputils :: Configuration
+ * \ingroup Siputils
+ */
+
+
+#include "../../cfg/cfg.h"
+#include "../../parser/msg_parser.h" /* method types */
+
+#include "config.h"
+
+struct cfg_group_siputils default_siputils_cfg = {
+ 0
+ };
+
+void *siputils_cfg = &default_siputils_cfg;
+
+cfg_def_t siputils_cfg_def[] = {
+ {"ring_timeout", CFG_VAR_INT | CFG_ATOMIC, 0, 0, ring_timeout_fixup, 0,
+ "define how long the Call-id is kept in the internal list" },
+ {0, 0, 0, 0, 0, 0}
+};
+
+int ring_timeout_fixup(void *handle, str* gname, str* name, void **val){
+ if((int)*val > 0) return 0;
+ return -1;
+}
diff --git a/modules_k/siputils/config.h b/modules_k/siputils/config.h
new file mode 100644
index 0000000..e81eb66
--- /dev/null
+++ b/modules_k/siputils/config.h
@@ -0,0 +1,38 @@
+/*
+ * $Id$
+ *
+ * SIP-router is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+/*!
+ * \file
+ * \brief Siputils :: Configuration
+ * \ingroup siputils
+ */
+
+
+#ifndef _SIPUTILS_CONFIG_H
+#define _SIPUTILS_CONFIG_H
+
+
+#include "../../cfg/cfg.h"
+#include "../../str.h"
+
+struct cfg_group_siputils {
+ unsigned int ring_timeout;
+};
+
+extern struct cfg_group_siputils default_siputils_cfg;
+extern void *siputils_cfg;
+extern cfg_def_t siputils_cfg_def[];
+
+int ring_timeout_fixup(void*, str*, str*, void**);
+
+#endif