man pages and documentation refer to a fixed name of the software
(currently sip-router).
should Makefile be edited to change that on the fly to whatever is
chosen as MAIN_NAME or what?
-- juha
make[1]: Entering directory
`/home/darilion/software/siprouter/sip-router/modules_s/bdb'
In file included from bdb_val.c:29:
bdb.h:46:29: error: ../../db/db_key.h: No such file or directory
bdb.h:47:28: error: ../../db/db_op.h: No such file or directory
bdb.h:48:29: error: ../../db/db_val.h: No such file or directory
In file included from bdb_uval.c:29:
Looks like it was not adopted properly. It see it tries to include files
from old db directory, and also from srdb2 - but shouldn't that be srdb1
(ser's db layer)?
regards
klaus
Hi!
What is the suggested way to build sr with TLS?
Is it "TLS=1 make" or "TLS_HOOKS=1 make" or do I have to just remove tls
from excluded modules? Or a combination? I think there is some cleanup
needed as well.
regards
klaus
Module: sip-router
Branch: master
Commit: 249df0253d2ef8fa3948ce50a4a76ba8f256fd1e
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=249df02…
Author: Miklos Tirpak <miklos(a)iptel.org>
Committer: Miklos Tirpak <miklos(a)iptel.org>
Date: Wed Jul 1 14:23:09 2009 +0200
cfg framework: documentation for cfg_read_var*
- How to read the variables of another module, core, or
the script is documented.
- cfg_read_var() fixed -- it did not allow reading the variables
that had a fixup function.
---
cfg/cfg_select.c | 7 -------
doc/cfg.txt | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 7 deletions(-)
diff --git a/cfg/cfg_select.c b/cfg/cfg_select.c
index 45aeb94..4374aa6 100644
--- a/cfg/cfg_select.c
+++ b/cfg/cfg_select.c
@@ -274,13 +274,6 @@ int read_cfg_var_fixup(char *gname, char *vname, struct cfg_read_handle *read_ha
return 0;
}
- if (var->def->on_change_cb) {
- /* fixup function is defined -- safer to return an error
- than an incorrect value */
- LOG(L_ERR, "ERROR: read_cfg_var_fixup(): variable cannot be retrieved\n");
- return -1;
- }
-
read_handle->group = (void *)group;
read_handle->var = (void *)var;
return 1;
diff --git a/doc/cfg.txt b/doc/cfg.txt
index 19b0e53..93d2c77 100644
--- a/doc/cfg.txt
+++ b/doc/cfg.txt
@@ -166,6 +166,45 @@ cfg_get(foo, cfg_handle, s)
cfg_get(foo, cfg_handle, p)
+It is also possible to access the variables of other modules or the core in two
+different ways:
+
+1) Include the header file of the other module/core that declares the cfg_group_*
+structure and the handle for it. Than use the handle of that module/core to access
+the variable:
+
+cfg_get(bar, cfg_handle_of_bar, j);
+
+2) Access the variables by their group and variable name:
+
+#include "../../cfg/cfg_select.h"
+
+struct cfg_read_handle var_bar_j;
+
+in the module init function:
+static int mod_init(void)
+{
+ if ((read_cfg_var_fixup("bar", "j", &var_bar_j)) < 0)
+ return -1;
+ /* Note that the variable may or may not exist at this point
+ * depending on the module loading order. The fixup will still
+ * be successful but the variable cannot be read if it has not been
+ * declared yet. If the variable will not be declared at all
+ * SER will fail to start
+ */
+}
+
+int j;
+if ((cfg_read_var_int(&var_bar_j, &j)) < 0) { error... }
+
+or similarly,
+str s;
+if ((cfg_read_var_str(&var_bar_j, &s)) < 0) { error... }
+
+2) is a bit slower than 1) because the first solution returns the pointer directly
+to the variable, but 2) supports also the variables declared in the script that are
+not known at compile time.
+
3. Using the framework in the core
===============================================================================
Revision: 5888
http://openser.svn.sourceforge.net/openser/?rev=5888&view=rev
Author: ibc_sf
Date: 2009-07-01 11:31:07 +0000 (Wed, 01 Jul 2009)
Log Message:
-----------
- Some typos in "is_method()" function.
Modified Paths:
--------------
trunk/etc/kamailio.cfg
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5887
http://openser.svn.sourceforge.net/openser/?rev=5887&view=rev
Author: ibc_sf
Date: 2009-07-01 11:28:21 +0000 (Wed, 01 Jul 2009)
Log Message:
-----------
- Fixed registration behind NAT (missing "setbflag(6)"). Credits to Rub?\195?\169n Rojas (sr-users-es).
Modified Paths:
--------------
trunk/etc/kamailio.cfg
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Hi all,
i'm pleased to announce that i give a talk about the kamailio project on
the linuxtag 2009 in Berlin.
The title of the talk is "Building carrier grade voice over IP systems
with kamailio", on wednesday the 24th june afternoon. Further details can
be found in the conference program at:
http://www.linuxtag.org/2009/de/program/freies-vortragsprogramm/mittwoch/vo…
I'll be also present on the linuxtag on thursday, so if you would like to
meet for some discussions, just drop me a mail (off-list).
With best regards,
Henning Westerholt