Just added `--cfg-print` that should do what you were looking for, to the 
extent of evaluating `include_file/import_file` and `ifdef/ifndef` conditions.

It does not replace the tokens defined with `define`, `subst` or the other 
token defining variants. If someone needs to go further into this, then a pull 
request is more than welcome.

Basic tests were done with default config file and an imported file. If there 
are issues, open a bug report.

As a side note, to be aware of, the empty lines are kept, so the output may 
have sequences of several empty lines, if the `#!ifdef ... #!endif` blocks had 
empty lines before and after.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2546#issuecomment-724649393
_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to