<p></p>
<p>Just added <code>--cfg-print</code> that should do what you were looking for, to the extent of evaluating <code>include_file/import_file</code> and <code>ifdef/ifndef</code> conditions.</p>
<p>It does not replace the tokens defined with <code>define</code>, <code>subst</code> or the other token defining variants. If someone needs to go further into this, then a pull request is more than welcome.</p>
<p>Basic tests were done with default config file and an imported file. If there are issues, open a bug report.</p>
<p>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 <code>#!ifdef ... #!endif</code> blocks had empty lines before and after.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2546#issuecomment-724649393">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIQQVT6BICIXAVEDRDSPERLPANCNFSM4TPZPM5A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZOO6IILNUS5BNN3LELSPERLPA5CNFSM4TPZPM5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFMYULMI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2546#issuecomment-724649393",
"url": "https://github.com/kamailio/kamailio/issues/2546#issuecomment-724649393",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>