Browse code

parser: added note about new fields in sip_msg_t

Daniel-Constantin Mierla authored on 19/09/2013 13:12:29
Showing 1 changed files
... ...
@@ -367,6 +367,12 @@ typedef struct sip_msg {
367 367
 		int decoded;
368 368
 		struct receive_info rcv;
369 369
 	} flow;
370
+
371
+	/* IMPORTANT: when adding new fields in this structure (sip_msg_t),
372
+	 * be sure it is freed in free_sip_msg() and it is cloned or reset
373
+	 * to shm structure for transaction - see sip_msg_clone.c. In tm
374
+	 * module, take care of these fields for faked environemt used for
375
+	 * runing failure handlers - see modules/tm/t_reply.c */
370 376
 } sip_msg_t;
371 377
 
372 378
 /*! \brief pointer to a fakes message which was never received ;