Browse code

core: allow pvar resolve in subsdef

lazedo authored on 18/01/2019 13:17:02
Showing 1 changed files
... ...
@@ -32,6 +32,7 @@
32 32
 #include "dprint.h"
33 33
 
34 34
 #include "ppcfg.h"
35
+#include "fmsg.h"
35 36
 
36 37
 typedef struct _pp_subst_rule {
37 38
 	char *indata;
... ...
@@ -184,7 +185,8 @@ int pp_subst_run(char **data)
184 185
 	i = 0;
185 186
 	while(pr)
186 187
 	{
187
-		result=subst_str(*data, 0,
188
+		sip_msg_t *fmsg = faked_msg_get_next();
189
+		result=subst_str(*data, fmsg,
188 190
 				(struct subst_expr*)pr->ppdata, 0); /* pkg malloc'ed result */
189 191
 		if(result!=NULL)
190 192
 		{