Module: sip-router
Branch: master
Commit: b3c69488bf80e76c2359f6d9611cbcf2edf6c67f
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b3c6948…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: Thu May 23 09:45:03 2013 +0200
modules/debugger: update documentation. This is Kamailio!
---
modules/debugger/README | 5 +++--
modules/debugger/doc/debugger_admin.xml | 4 ++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/modules/debugger/README b/modules/debugger/README
index 6ab6686..77c2ae4 100644
--- a/modules/debugger/README
+++ b/modules/debugger/README
@@ -241,7 +241,8 @@ modparam("debugger", "step_loops", 100)
Used to compute power of two as size of internal hash table to store
levels per module (e.g., if its set to 4, internal hash table has 16
- slots). This parameter is accesible readonly via the ser cfg framework.
+ slots). This parameter is accesible readonly via the Kamailio config
+ framework.
Default value is "0" - feature disabled.
@@ -253,7 +254,7 @@ modparam("debugger", "mod_hash_size", 5)
3.9. mod_level_mode (int)
Enable or disable per module log level (0 - disabled, 1 - enabled).
- This parameter is tunable via the ser cfg framework.
+ This parameter is tunable via the Kamailio config framework.
Default value is "0".
diff --git a/modules/debugger/doc/debugger_admin.xml b/modules/debugger/doc/debugger_admin.xml
index e97e4bf..6359cc0 100644
--- a/modules/debugger/doc/debugger_admin.xml
+++ b/modules/debugger/doc/debugger_admin.xml
@@ -227,7 +227,7 @@ modparam("debugger", "step_loops", 100)
<title><varname>mod_hash_size</varname> (int)</title>
<para>
Used to compute power of two as size of internal hash table to store levels
- per module (e.g., if its set to 4, internal hash table has 16 slots). This parameter is accesible readonly via the ser cfg framework.
+ per module (e.g., if its set to 4, internal hash table has 16 slots). This parameter is accesible readonly via the Kamailio config framework.
</para>
<para>
<emphasis>
@@ -247,7 +247,7 @@ modparam("debugger", "mod_hash_size", 5)
<section>
<title><varname>mod_level_mode</varname> (int)</title>
<para>
- Enable or disable per module log level (0 - disabled, 1 - enabled). This parameter is tunable via the ser cfg framework.
+ Enable or disable per module log level (0 - disabled, 1 - enabled). This parameter is tunable via the Kamailio config framework.
</para>
<para>
<emphasis>
Module: sip-router
Branch: master
Commit: 169e92b86d6a1a98be92d0012bd831785855b968
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=169e92b…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: Thu May 23 09:07:53 2013 +0200
modules/debugger: refresh README
---
modules/debugger/README | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/debugger/README b/modules/debugger/README
index 84d9c97..6ab6686 100644
--- a/modules/debugger/README
+++ b/modules/debugger/README
@@ -241,7 +241,7 @@ modparam("debugger", "step_loops", 100)
Used to compute power of two as size of internal hash table to store
levels per module (e.g., if its set to 4, internal hash table has 16
- slots).
+ slots). This parameter is accesible readonly via the ser cfg framework.
Default value is "0" - feature disabled.
@@ -253,6 +253,7 @@ modparam("debugger", "mod_hash_size", 5)
3.9. mod_level_mode (int)
Enable or disable per module log level (0 - disabled, 1 - enabled).
+ This parameter is tunable via the ser cfg framework.
Default value is "0".
Module: sip-router
Branch: master
Commit: 6417ac9f99a0c97254206797070bbe3095002847
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6417ac9…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: Thu May 23 09:04:12 2013 +0200
modules/debugger: use cfg framework to be able to activate/deactivate debug per module.
add missing files from commit.
---
modules/debugger/debugger_config.c | 48 ++++++++++++++++++++++++++++++++++++
modules/debugger/debugger_config.h | 46 ++++++++++++++++++++++++++++++++++
2 files changed, 94 insertions(+), 0 deletions(-)
diff --git a/modules/debugger/debugger_config.c b/modules/debugger/debugger_config.c
new file mode 100644
index 0000000..3eaf82d
--- /dev/null
+++ b/modules/debugger/debugger_config.c
@@ -0,0 +1,48 @@
+/*
+ * $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
+ *
+ */
+
+/*!
+ * \file
+ * \brief Debugger :: Configuration
+ * \ingroup debugger
+ */
+
+
+#include "../../cfg/cfg.h"
+
+#include "debugger_config.h"
+
+struct cfg_group_dbg default_dbg_cfg = {
+ 0, /* level_mode */
+ 0 /* hash_size */
+};
+
+void *dbg_cfg = &default_dbg_cfg;
+
+cfg_def_t dbg_cfg_def[] = {
+ {"mod_level_mode", CFG_VAR_INT|CFG_ATOMIC, 0, 1,
+ dbg_level_mode_fixup, 0,
+ "Enable or disable per module log level (0 - disabled, 1 - enabled)"},
+ {"mod_hash_size", CFG_VAR_INT|CFG_READONLY, 0, 0,
+ 0, 0,
+ "power of two as size of internal hash table to store levels per module"},
+ {0, 0, 0, 0, 0, 0}
+};
diff --git a/modules/debugger/debugger_config.h b/modules/debugger/debugger_config.h
new file mode 100644
index 0000000..9b5ab8d
--- /dev/null
+++ b/modules/debugger/debugger_config.h
@@ -0,0 +1,46 @@
+/*
+ * $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
+ *
+ */
+
+/*!
+ * \file
+ * \brief Debugger :: Configuration
+ * \ingroup debugger
+ */
+
+
+#ifndef _DEBUGGER_CONFIG_H
+#define _DEBUGGER_CONFIG_H
+
+#include "../../cfg/cfg.h"
+#include "../../str.h"
+
+struct cfg_group_dbg {
+ unsigned int mod_level_mode;
+ unsigned int mod_hash_size;
+};
+
+extern struct cfg_group_dbg default_dbg_cfg;
+extern void *dbg_cfg;
+extern cfg_def_t dbg_cfg_def[];
+
+extern int dbg_level_mode_fixup(void *temp_handle,
+ str *group_name, str *var_name, void **value);
+#endif
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task is now closed:
FS#298 - modules/debugger: activate/deactivate via cfg framework
User who did this - Víctor Seva (linuxmaniac)
Reason for closing: Implemented
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=298
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#298 - modules/debugger: activate/deactivate via cfg framework
User who did this - Daniel-Constantin Mierla (miconda)
----------
Now that mod_level_mode can be changed at runtime the hash table has to be initiated based on hash table parameter. If that is zero, means this feature is enabled (the module can be used only for cfgtrace or the rest of its features). If you don't initialize the hash table in mod init, it will not be visible across child processes.
So, if hash table is not initialized, there is no point to register the callback function to core.
----------
More information can be found at the following URL:
https://sip-router.org/tracker/index.php?do=details&task_id=298#comment891
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 is now closed:
FS#296 - tm:branch-failure event_route is not executed on all branch failures
User who did this - Juha Heinanen (jh)
Reason for closing: Implemented
Additional comments about closing: thanks to daniel for implementing this.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=296
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#296 - tm:branch-failure event_route is not executed on all branch failures
User who did this - Juha Heinanen (jh)
----------
it turned out that i had forgotten to include
modparam("tm", "failure_exec_mode", 1)
in my test config. once i included it, both branch failure route and transaction failure route were executed after fr_timer fired.
i'll therefore close this issue.
it would be nice if it would be possible to get branch failure route executed faster than what fr_timer specifies when tcp connection to the destination is broken.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=296#comment890
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.