Module: sip-router
Branch: master
Commit: 10cc1dd7a3f4481c677022e7ff0da87f004077f0
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=10cc1dd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Sep 19 15:12:29 2013 +0200
parser: added note about new fields in sip_msg_t
---
parser/msg_parser.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/parser/msg_parser.h b/parser/msg_parser.h
index 5d481e0..08b76ed 100644
--- a/parser/msg_parser.h
+++ b/parser/msg_parser.h
@@ -367,6 +367,12 @@ typedef struct sip_msg {
int decoded;
struct receive_info rcv;
} flow;
+
+ /* IMPORTANT: when adding new fields in this structure (sip_msg_t),
+ * be sure it is freed in free_sip_msg() and it is cloned or reset
+ * to shm structure for transaction - see sip_msg_clone.c. In tm
+ * module, take care of these fields for faked environemt used for
+ * runing failure handlers - see modules/tm/t_reply.c */
} sip_msg_t;
/*! \brief pointer to a fakes message which was never received ;