[sr-dev] git:master:2a436316: core: allow pvar resolve in subsdef

lazedo luis.azedo at factorlusitano.com
Thu Jan 24 14:47:24 CET 2019


Module: kamailio
Branch: master
Commit: 2a43631692285346050ae906f772a1c111906c5b
URL: https://github.com/kamailio/kamailio/commit/2a43631692285346050ae906f772a1c111906c5b

Author: lazedo <luis.azedo at factorlusitano.com>
Committer: lazedo <luis.azedo at factorlusitano.com>
Date: 2019-01-18T13:17:02Z

core: allow pvar resolve in subsdef

---

Modified: src/core/ppcfg.c

---

Diff:  https://github.com/kamailio/kamailio/commit/2a43631692285346050ae906f772a1c111906c5b.diff
Patch: https://github.com/kamailio/kamailio/commit/2a43631692285346050ae906f772a1c111906c5b.patch

---

diff --git a/src/core/ppcfg.c b/src/core/ppcfg.c
index 1ff3103f52..a06795f760 100644
--- a/src/core/ppcfg.c
+++ b/src/core/ppcfg.c
@@ -32,6 +32,7 @@
 #include "dprint.h"
 
 #include "ppcfg.h"
+#include "fmsg.h"
 
 typedef struct _pp_subst_rule {
 	char *indata;
@@ -184,7 +185,8 @@ int pp_subst_run(char **data)
 	i = 0;
 	while(pr)
 	{
-		result=subst_str(*data, 0,
+		sip_msg_t *fmsg = faked_msg_get_next();
+		result=subst_str(*data, fmsg,
 				(struct subst_expr*)pr->ppdata, 0); /* pkg malloc'ed result */
 		if(result!=NULL)
 		{




More information about the sr-dev mailing list