Module: sip-router
Branch: master
Commit: 00dbf3d788404cd97821e4d5873e843b4f0aec4e
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=00dbf3d…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Mon Mar 2 23:20:31 2009 +0100
A comment warning about flag FL_REQ_UPSTREAM.
This patch adds a comment warning about flag FL_REQ_UPSTREAM which is
defined in kamailio module acc and uses the value (1<<11) in sip message
flags. This flags was originally defined in this file, but since the
kamailio acc module is the only module setting and using the flag.
I think it would make more sense to define it in the module itself
before we merge ser and kamailio acc implementations (then the flag
probably won't be needed anymore because the test for the direction of
the message is trivial and there is no need to set the flag in the sip
message, especially if it is not being used by any other module).
Signed-off-by: Jan Janak <jan(a)iptel.org>
---
parser/msg_parser.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/parser/msg_parser.h b/parser/msg_parser.h
index 98f98aa..b1541b7 100644
--- a/parser/msg_parser.h
+++ b/parser/msg_parser.h
@@ -96,6 +96,10 @@ enum request_method { METHOD_UNDEF=0, METHOD_INVITE=1, METHOD_CANCEL=2, METHOD_A
#define FL_MTU_TCP_FB (1 << 8)
#define FL_MTU_TLS_FB (1 << 9)
#define FL_MTU_SCTP_FB (1 << 10)
+
+/* WARNING: Value (1 << 11) is temporarily reserved for use in kamailio acc
+ * module (flag FL_REQ_UPSTREAM)! */
+
#define FL_MTU_FB_MASK (FL_MTU_TCP_FB|FL_MTU_TLS_FB|FL_MTU_SCTP_FB)
Module: sip-router
Branch: master
Commit: bb21bd2e4699b7a5f15a91ee779ddd6174df307a
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bb21bd2…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Tue Mar 3 01:04:36 2009 +0100
Function load_tm_api added
There are many modules that need to access the API of tm module and they all
have to go through the same step of commands to bind the API exported by
the tm module. It makes more sense to create one function which does it all
and make that function available to all other modules using tm.
Signed-off-by: Jan Janak <jan(a)iptel.org>
---
modules/tm/tm_load.h | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/modules/tm/tm_load.h b/modules/tm/tm_load.h
index 8e67dcc..dc00a91 100644
--- a/modules/tm/tm_load.h
+++ b/modules/tm/tm_load.h
@@ -140,4 +140,23 @@ typedef int(*load_tm_f)( struct tm_binds *tmb );
int load_tm( struct tm_binds *tmb);
+static inline int load_tm_api(struct tm_binds* tmb)
+{
+ load_tm_f load_tm;
+
+ /* import the TM auto-loading function */
+ load_tm = (load_tm_f)find_export("load_tm", NO_SCRIPT, 0);
+
+ if (load_tm == NULL) {
+ LOG(L_ERR, "Cannot import load_tm function from tm module\n");
+ return -1;
+ }
+
+ /* let the auto-loading function load all TM stuff */
+ if (load_tm(tmb) == -1) {
+ return -1;
+ }
+ return 0;
+}
+
#endif
Module: sip-router
Branch: janakj/kcore
Commit: 96b479a017db26d450ceaec29b2d13c450ac6949
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=96b479a…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Mon Mar 2 22:48:43 2009 +0100
New shared library libkcore
This is a new shared library which will contain all things from kamailio
core that are not yet present in the sip-router core.
---
lib/kcore/Makefile | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/lib/kcore/Makefile b/lib/kcore/Makefile
new file mode 100644
index 0000000..4198f4e
--- /dev/null
+++ b/lib/kcore/Makefile
@@ -0,0 +1,9 @@
+include ../../Makefile.defs
+auto_gen=
+NAME:=kcore
+MAJOR_VER=1
+MINOR_VER=0
+BUGFIX_VER=0
+LIBS=
+
+include ../../Makefile.libs
Module: sip-router
Branch: master
Commit: e8249ab7160dce2c3aa0fea5cffbe9284928b5d2
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e8249ab…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Mon Mar 2 17:25:17 2009 +0100
Add logging facility parameter to LOG_.
The recent changes in dprint.h introduced a new parameter to LOG_ macro
which can be used to specify other than the default logging facility
configured through the config framework.
All calls to LOG_ need to be updated to have DEFAULT_FACILITY as the
first parameter. Other logging macros are unaffected.
---
action.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/action.c b/action.c
index 131fc4b..47d702c 100644
--- a/action.c
+++ b/action.c
@@ -316,7 +316,8 @@ int do_action(struct run_act_ctx* h, struct action* a, struct sip_msg* msg)
ret=E_BUG;
break;
}
- LOG_(a->val[0].u.number, "<script>: ", "%s", a->val[1].u.string);
+ LOG_(DEFAULT_FACILITY, a->val[0].u.number, "<script>: ", "%s",
+ a->val[1].u.string);
ret=1;
break;