Module: sip-router
Branch: andrei/mod_register
Commit: 7000945a879bb3f0e003fb1d866164a47b3554c0
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7000945…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Nov 20 20:02:05 2008 +0100
minor macro additions for kamailio compatibility
---
dprint.h | 1 +
sr_module.h | 1 +
statistics.h | 3 ++-
3 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dprint.h b/dprint.h
index 41e9a45..6005a32 100644
--- a/dprint.h
+++ b/dprint.h
@@ -87,6 +87,7 @@ int log_facility_fixup(void *handle, str *name, void **val);
#define LOC_INFO __FILE__ ":" CT2STR(__LINE__) ": "
+#define is_printable(level) (cfg_get(core, core_cfg, debug)>=(level))
#ifdef NO_DEBUG
#ifdef __SUNPRO_C
diff --git a/sr_module.h b/sr_module.h
index 13474cd..51e3382 100644
--- a/sr_module.h
+++ b/sr_module.h
@@ -152,6 +152,7 @@ typedef int (*param_func_t)( modparam_t type, void* val);
#define BRANCH_ROUTE 8 /* Function can be used in branch_route blocks */
#define ONSEND_ROUTE 16 /* Function can be used in onsend_route blocks */
#define ERROR_ROUTE 32 /* Function can be used in an error route */
+#define LOCAL_ROUTE 64 /* Function can be used in a local route */
/* Macros - used as rank in child_init function */
#define PROC_MAIN 0 /* Main ser process */
diff --git a/statistics.h b/statistics.h
index a5ba144..3fd311a 100644
--- a/statistics.h
+++ b/statistics.h
@@ -61,9 +61,10 @@ typedef struct stat_export_ {
#define get_stat(name) 0
#define get_stat_val(v) 0
+#define get_stat_var_from_num_code(num_code, in_code) 0
#define update_stat(v, n)
#define reset_stat(v)
-#define if_update_stat (cond, v, n)
+#define if_update_stat(cond, v, n)
#ifdef STATISTICS
#warning "sorry sip-router does not support STATISTICS"