[sr-dev] git:master:5cb28a47: core: parser - added vdata void* field inside msg_ldata_t structure

Daniel-Constantin Mierla miconda at gmail.com
Wed May 27 09:23:08 CEST 2020


Module: kamailio
Branch: master
Commit: 5cb28a47cade4b3d20e37ed38c74e575f7343386
URL: https://github.com/kamailio/kamailio/commit/5cb28a47cade4b3d20e37ed38c74e575f7343386

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-05-27T09:20:05+02:00

core: parser - added vdata void* field inside msg_ldata_t structure

- useful to link to custom local data on message processing

---

Modified: src/core/parser/msg_parser.h

---

Diff:  https://github.com/kamailio/kamailio/commit/5cb28a47cade4b3d20e37ed38c74e575f7343386.diff
Patch: https://github.com/kamailio/kamailio/commit/5cb28a47cade4b3d20e37ed38c74e575f7343386.patch

---

diff --git a/src/core/parser/msg_parser.h b/src/core/parser/msg_parser.h
index 973b5702b4..aa35fa5185 100644
--- a/src/core/parser/msg_parser.h
+++ b/src/core/parser/msg_parser.h
@@ -268,6 +268,7 @@ typedef struct ocd_flow {
  * - add to msg_ldata_reset() if a field uses dynamic memory */
 typedef struct msg_ldata {
 	ocd_flow_t flow;
+	void *vdata;
 } msg_ldata_t;
 
 /*! \brief The SIP message */




More information about the sr-dev mailing list