Module: sip-router
Branch: tirpi/cfg_framework_multivalue
Commit: f6f6e6c8134d5c995d1818890b6107790363410f
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f6f6e6c…
Author: Miklos Tirpak <miklos(a)iptel.org>
Committer: Miklos Tirpak <miklos(a)iptel.org>
Date: Tue Oct 5 16:50:51 2010 +0200
cfg_rpc: group can be specified for cfg.list
- cfg.list without any parameter lists all the cfg variables.
- cfg.list <group name> lists only the variables of the specific group.
---
modules/cfg_rpc/README | 4 ++--
modules/cfg_rpc/cfg_rpc.c | 14 ++++++++++++--
modules/cfg_rpc/doc/rpc.xml | 3 ++-
3 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/modules/cfg_rpc/README b/modules/cfg_rpc/README
index 385ee8d..3bec8f0 100644
--- a/modules/cfg_rpc/README
+++ b/modules/cfg_rpc/README
@@ -60,8 +60,8 @@ Miklos Tirpak
can optionally contain the group instance id, for example foo[5].
* cfg.help - Print the description of a configuration variable. The
function accepts two parameters: group name, variable name.
- * cfg.list - List the configuration variables. The function does not
- have any parameters.
+ * cfg.list - List the configuration variables. The function has one
+ optional parameter: group name.
* cfg.diff - List the pending configuration changes that have not
been committed yet. The function does not have any parameters.
* cfg.add_group_inst - Add a new instance to an existing
diff --git a/modules/cfg_rpc/cfg_rpc.c b/modules/cfg_rpc/cfg_rpc.c
index 0ec588f..23cba03 100644
--- a/modules/cfg_rpc/cfg_rpc.c
+++ b/modules/cfg_rpc/cfg_rpc.c
@@ -353,11 +353,21 @@ static void rpc_list(rpc_t* rpc, void* c)
str gname;
cfg_def_t *def;
int i;
+ str group;
+
+ if (rpc->scan(c, "*S", &group) < 1) {
+ group.s = NULL;
+ group.len = 0;
+ }
cfg_get_group_init(&h);
while(cfg_get_group_next(&h, &gname, &def))
- for (i=0; def[i].name; i++)
- rpc->printf(c, "%.*s: %s", gname.len, gname.s, def[i].name);
+ if (!group.len
+ || ((gname.len == group.len)
+ && (memcmp(gname.s, group.s, group.len) == 0))
+ )
+ for (i=0; def[i].name; i++)
+ rpc->printf(c, "%.*s: %s", gname.len, gname.s, def[i].name);
}
static const char* rpc_diff_doc[2] = {
diff --git a/modules/cfg_rpc/doc/rpc.xml b/modules/cfg_rpc/doc/rpc.xml
index 24c5769..4491184 100644
--- a/modules/cfg_rpc/doc/rpc.xml
+++ b/modules/cfg_rpc/doc/rpc.xml
@@ -100,7 +100,8 @@
<listitem>
<para>
<emphasis>cfg.list</emphasis> - List the configuration
- variables. The function does not have any parameters.
+ variables. The function has one optional parameter:
+ group name.
</para>
</listitem>
<listitem>
Module: sip-router
Branch: 3.1
Commit: 14a2f7d1560a3462df850084f25a758ca704a473
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=14a2f7d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Oct 26 21:15:11 2010 +0200
db_text(k): fixed db_url driver name
- it has to be 'text' instead of 'dbtext'
- db_text should work as well, according to db driver names and module
names
- reported by Jeremya
(cherry picked from commit e82be561d2e7f98cb2cbd7e574873134f70b2f8a)
---
modules_k/db_text/README | 247 +++++++++++++++++--------------
modules_k/db_text/doc/db_text_admin.xml | 18 +-
2 files changed, 142 insertions(+), 123 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=14a…
Module: sip-router
Branch: master
Commit: e82be561d2e7f98cb2cbd7e574873134f70b2f8a
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e82be56…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Oct 26 21:15:11 2010 +0200
db_text(k): fixed db_url driver name
- it has to be 'text' instead of 'dbtext'
- db_text should work as well, according to db driver names and module
names
- reported by Jeremya
---
modules_k/db_text/README | 247 +++++++++++++++++--------------
modules_k/db_text/doc/db_text_admin.xml | 18 +-
2 files changed, 142 insertions(+), 123 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=e82…
Hi,
there seems to be a bug when using multi_leg_info (version: kamailio 3.1.0
(i386/linux) bf8b8d):
modparam("acc", "multi_leg_info", "Src-Leg=$avp(i:901);Dst-Leg=$avp(i:902)")
When the call ends, kamailio suddenly segfaults:
WARNING: no fork mode
Segmentation fault (core dumped)
If you do not know to reproduce the error, please provide a howto that can
lead me to retrieve another useful information (gdb..). Thank you very much.
Module: sip-router
Branch: 3.1
Commit: 800253af1821bd2fd0e997f74d66105bb4d2aea4
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=800253a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Oct 24 23:03:45 2010 +0200
auth: fixe typo in docs
---
modules/auth/README | 6 +++---
modules/auth/doc/functions.xml | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/auth/README b/modules/auth/README
index 0f0214b..5850726 100644
--- a/modules/auth/README
+++ b/modules/auth/README
@@ -497,9 +497,9 @@ if (www_authenticate("realm", "subscriber)) {
to the user so he can decide what username and password to use.
Usually this is domain of the host the server is running on.
It must not be empty string “”. In case of REGISTER requests To
- header field domain (e.g., varibale $td) can be used (because this
- header field represents a user being registered), for all other
- messages From header field domain can be used (e.g., varibale $fd).
+ header field domain (e.g., variable $td) can be used (because this
+ header field represents the user being registered), for all other
+ messages From header field domain can be used (e.g., variable $fd).
The string may contain pseudo variables.
* flags - Value of this parameter can be a bitmask of following:
+ 1 - build challenge header with qop=auth
diff --git a/modules/auth/doc/functions.xml b/modules/auth/doc/functions.xml
index b9816bc..0e812b3 100644
--- a/modules/auth/doc/functions.xml
+++ b/modules/auth/doc/functions.xml
@@ -55,10 +55,10 @@ if (www_authenticate("realm", "subscriber)) {
</para>
<para>
It must not be empty string <quote></quote>. In case of REGISTER
- requests To header field domain (e.g., varibale $td) can be used
- (because this header field represents a user being registered),
+ requests To header field domain (e.g., variable $td) can be used
+ (because this header field represents the user being registered),
for all other messages From header field domain can be used
- (e.g., varibale $fd).
+ (e.g., variable $fd).
</para>
<para>
The string may contain pseudo variables.
Module: sip-router
Branch: 3.1
Commit: 0e691792a3c27150de7686aa04ddb9fea9129756
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0e69179…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Oct 24 23:03:59 2010 +0200
auth_db(k): note about empty realm parameter
- empty realm is no longer allowed, use $td of $fd if you have
multi-domain
(cherry picked from commit bacb5704a05dafb345221095ff194a9181394b98)
---
modules_k/auth_db/README | 11 ++++++-----
modules_k/auth_db/doc/auth_db_admin.xml | 15 ++++++++++-----
2 files changed, 16 insertions(+), 10 deletions(-)
diff --git a/modules_k/auth_db/README b/modules_k/auth_db/README
index dc1cccf..cb6177c 100644
--- a/modules_k/auth_db/README
+++ b/modules_k/auth_db/README
@@ -305,11 +305,10 @@ modparam("auth_db", "load_credentials", "$avp(i:123)=rpid;email_address")
* realm - Realm is a opaque string that the user agent should present
to the user so he can decide what username and password to use.
Usually this is domain of the host the server is running on.
- If an empty string “” is used then the server will generate it from
- the request. In case of REGISTER requests To header field domain
- will be used (because this header field represents a user being
- registered), for all other messages From header field domain will
- be used.
+ It must not be empty string “”. In case of REGISTER requests To
+ header field domain (e.g., variable $td) can be used (because this
+ header field represents the user being registered), for all other
+ messages From header field domain can be used (e.g., variable $fd).
The string may contain pseudo variables.
* table - Table to be used to lookup usernames and passwords (usually
subscribers table).
@@ -346,6 +345,8 @@ if (www_authorize("kamailio.org", "subscriber")) {
* realm - Realm is a opaque string that the user agent should present
to the user so he can decide what username and password to use.
Usually this is domain of the host the server is running on.
+ It must not be empty string “”. Apart of a static strinh, typical
+ value is From header field domain (e.g., variable $fd).
If an empty string “” is used then the server will generate it from
the request. From header field domain will be used as realm.
The string may contain pseudo variables.
diff --git a/modules_k/auth_db/doc/auth_db_admin.xml b/modules_k/auth_db/doc/auth_db_admin.xml
index b6e1d14..f00e5ca 100644
--- a/modules_k/auth_db/doc/auth_db_admin.xml
+++ b/modules_k/auth_db/doc/auth_db_admin.xml
@@ -324,11 +324,11 @@ modparam("auth_db", "load_credentials", "$avp(i:123)=rpid;email_address")
the server is running on.
</para>
<para>
- If an empty string <quote></quote> is used then the server will
- generate it from the request. In case of REGISTER requests To
- header field domain will be used (because this header field
- represents a user being registered), for all other messages From
- header field domain will be used.
+ It must not be empty string <quote></quote>. In case of REGISTER
+ requests To header field domain (e.g., variable $td) can be used
+ (because this header field represents the user being registered),
+ for all other messages From header field domain can be used
+ (e.g., variable $fd).
</para>
<para>
The string may contain pseudo variables.
@@ -395,6 +395,11 @@ if (www_authorize("kamailio.org", "subscriber")) {
the server is running on.
</para>
<para>
+ It must not be empty string <quote></quote>. Apart of a static
+ strinh, typical value is From header field domain
+ (e.g., variable $fd).
+ </para>
+ <para>
If an empty string <quote></quote> is used then the server will
generate it from the request. From header field domain will be
used as realm.