[sr-dev] git:5.2:ded4f064: core: allow pvar resolve in subsdef
Sergey Safarov
s.safarov at gmail.com
Sat Mar 30 13:57:17 CET 2019
Module: kamailio
Branch: 5.2
Commit: ded4f064602d54bdb42b0bde15dda1b886009cd0
URL: https://github.com/kamailio/kamailio/commit/ded4f064602d54bdb42b0bde15dda1b886009cd0
Author: lazedo <luis.azedo at factorlusitano.com>
Committer: Sergey Safarov <s.safarov at gmail.com>
Date: 2019-03-30T15:08:50+03:00
core: allow pvar resolve in subsdef
---
Modified: src/core/ppcfg.c
---
Diff: https://github.com/kamailio/kamailio/commit/ded4f064602d54bdb42b0bde15dda1b886009cd0.diff
Patch: https://github.com/kamailio/kamailio/commit/ded4f064602d54bdb42b0bde15dda1b886009cd0.patch
---
diff --git a/src/core/ppcfg.c b/src/core/ppcfg.c
index d15e0f899e..901c7dc04f 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