Module: kamailio
Branch: master
Commit: 39ffe589035fce17145023204b1005702e02a66f
URL:
https://github.com/kamailio/kamailio/commit/39ffe589035fce17145023204b10057…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-01-05T15:58:50+01:00
core: preprocessor subst rules are applied to pv names
- all name is matched and substituted before pv is looked up
- reported in FS#139
---
Modified: cfg.lex
---
Diff:
https://github.com/kamailio/kamailio/commit/39ffe589035fce17145023204b10057…
Patch:
https://github.com/kamailio/kamailio/commit/39ffe589035fce17145023204b10057…
---
diff --git a/cfg.lex b/cfg.lex
index 15cd19d..472dfd0 100644
--- a/cfg.lex
+++ b/cfg.lex
@@ -1045,6 +1045,7 @@ IMPORTFILE "import_file"
if (p_nest==0){
count();
addstr(&s_buf, yytext, yyleng);
+ r = pp_subst_run(&s_buf.s);
yylval.strval=s_buf.s;
memset(&s_buf, 0, sizeof(s_buf));
state=INITIAL_S;
@@ -1062,6 +1063,7 @@ IMPORTFILE "import_file"
<PVARID>{CR}|{EAT_ABLE}|. { yyless(yyleng-1);
count();
addstr(&s_buf, yytext, yyleng);
+ r = pp_subst_run(&s_buf.s);
yylval.strval=s_buf.s;
memset(&s_buf, 0, sizeof(s_buf));
state=INITIAL_S;