Browse code

core: switch on cfg print mode also on #!SERi, #!MAXCOMPAT and #!ALL

Daniel-Constantin Mierla authored on 10/11/2020 13:14:39
Showing 1 changed files
... ...
@@ -1265,6 +1265,10 @@ IMPORTFILE      "import_file"
1265 1265
 <COMMENT>.|{EAT_ABLE}|{CR}				{ count(); };
1266 1266
 
1267 1267
 <INITIAL>{COM_LINE}!{SER_CFG}{CR}		{ count();
1268
+											if(ksr_cfg_print_mode == 1) {
1269
+												printf("%s", yytext);
1270
+												BEGIN(CFGPRINTMODE);
1271
+											}
1268 1272
 											sr_cfg_compat=SR_COMPAT_SER;}
1269 1273
 <INITIAL>{COM_LINE}!{KAMAILIO_CFG}{CR}	{ count();
1270 1274
 											if(ksr_cfg_print_mode == 1) {
... ...
@@ -1273,7 +1277,11 @@ IMPORTFILE      "import_file"
1273 1277
 											}
1274 1278
 											sr_cfg_compat=SR_COMPAT_KAMAILIO;}
1275 1279
 <INITIAL>{COM_LINE}!{MAXCOMPAT_CFG}{CR}	{ count();
1276
-												sr_cfg_compat=SR_COMPAT_MAX;}
1280
+											if(ksr_cfg_print_mode == 1) {
1281
+												printf("%s", yytext);
1282
+												BEGIN(CFGPRINTMODE);
1283
+											}
1284
+											sr_cfg_compat=SR_COMPAT_MAX;}
1277 1285
 
1278 1286
 <INITIAL>{PREP_START}{DEFINE}{EAT_ABLE}+	{	count(); pp_define_set_type(0);
1279 1287
 											state = DEFINE_S; BEGIN(DEFINE_ID); }