Module: kamailio
Branch: master
Commit: 2a43631692285346050ae906f772a1c111906c5b
URL:
https://github.com/kamailio/kamailio/commit/2a43631692285346050ae906f772a1c…
Author: lazedo <luis.azedo(a)factorlusitano.com>
Committer: lazedo <luis.azedo(a)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/2a43631692285346050ae906f772a1c…
Patch:
https://github.com/kamailio/kamailio/commit/2a43631692285346050ae906f772a1c…
---
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)
{