[SR-Dev] [PATCH 05/10] Define flag FL_REQ_UPSTREAM in acc module.

Jan Janak jan at iptel.org
Tue Mar 3 01:16:17 CET 2009


This flag was originally defined in file msg_parser.h. But the
sip-router core does not contain this definition and it does not make
much sense to add it there because the acc module is the only module
using it and later, if we merge acc implementations from ser and
kamailio, this flag will be probably gone.

File sip_router/msg_parser.h contains a warning about the flag being
defined here, this is to make sure we don't create another flag with
conflicting value.
---
 modules/acc/acc.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/modules/acc/acc.h b/modules/acc/acc.h
index 3c99212..576de17 100644
--- a/modules/acc/acc.h
+++ b/modules/acc/acc.h
@@ -73,6 +73,14 @@
 
 #define MAX_SYSLOG_SIZE  65536
 
+/* WARNING: This is a flag stored in the sip_msg structure, the flag is
+ * temporarily defined here to make the module work with the sip-router core,
+ * I assume it won't be needed once we merge acc implementations from both
+ * projects. The value of the flag must be kept synchronized with other flags
+ * defined in parser/msg_parser.h!
+ */
+#define FL_REQ_UPSTREAM (1<<11)
+
 void acc_log_init(void);
 int  acc_log_request( struct sip_msg *req);
 
-- 
1.5.6.5




More information about the sr-dev mailing list