Module: kamailio
Branch: master
Commit: 1896db2b44c967066d973f760c7342621a837db9
URL:
https://github.com/kamailio/kamailio/commit/1896db2b44c967066d973f760c73426…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-11-10T14:14:39+01:00
core: switch on cfg print mode also on #!SERi, #!MAXCOMPAT and #!ALL
---
Modified: src/core/cfg.lex
---
Diff:
https://github.com/kamailio/kamailio/commit/1896db2b44c967066d973f760c73426…
Patch:
https://github.com/kamailio/kamailio/commit/1896db2b44c967066d973f760c73426…
---
diff --git a/src/core/cfg.lex b/src/core/cfg.lex
index 3a863b46e5..76f4ba0491 100644
--- a/src/core/cfg.lex
+++ b/src/core/cfg.lex
@@ -1265,6 +1265,10 @@ IMPORTFILE "import_file"
<COMMENT>.|{EAT_ABLE}|{CR} { count(); };
<INITIAL>{COM_LINE}!{SER_CFG}{CR} { count();
+ if(ksr_cfg_print_mode == 1) {
+ printf("%s", yytext);
+ BEGIN(CFGPRINTMODE);
+ }
sr_cfg_compat=SR_COMPAT_SER;}
<INITIAL>{COM_LINE}!{KAMAILIO_CFG}{CR} { count();
if(ksr_cfg_print_mode == 1) {
@@ -1273,7 +1277,11 @@ IMPORTFILE "import_file"
}
sr_cfg_compat=SR_COMPAT_KAMAILIO;}
<INITIAL>{COM_LINE}!{MAXCOMPAT_CFG}{CR} { count();
- sr_cfg_compat=SR_COMPAT_MAX;}
+ if(ksr_cfg_print_mode == 1) {
+ printf("%s", yytext);
+ BEGIN(CFGPRINTMODE);
+ }
+ sr_cfg_compat=SR_COMPAT_MAX;}
<INITIAL>{PREP_START}{DEFINE}{EAT_ABLE}+ { count(); pp_define_set_type(0);
state = DEFINE_S; BEGIN(DEFINE_ID); }