Browse Source

core: allow pvar resolve in subsdef

lazedo 6 years ago
parent
commit
ded4f06460
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/core/ppcfg.c

+ 3 - 1
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)
 		{