Module: kamailio Branch: 5.2 Commit: ded4f064602d54bdb42b0bde15dda1b886009cd0 URL: https://github.com/kamailio/kamailio/commit/ded4f064602d54bdb42b0bde15dda1b886009cd0
Author: lazedo <[email protected]> Committer: Sergey Safarov <[email protected]> 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) { _______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
