[sr-dev] [kamailio/kamailio] Dump Configuration and Exit (new flag -C [filename]) (#2546)

Daniel-Constantin Mierla notifications at github.com
Tue Nov 10 12:42:47 CET 2020


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20201110/f2fce6d4/attachment.htm>


More information about the sr-dev mailing list