<p>I think an approach which would be similar to existing packages would be to use instead something like a ".d" directory. Like this:</p>
<ul>
<li>/etc/kamailio/kamailio.cfg: main configuration</li>
<li>/etc/kamailio/kamailio.cfg.d: include files for main configuration</li>
</ul>
<p>Then you could simply drop include cfg files into this directory and they would be added to the main cfg. But we would need to use also some ordering, as the order in which the cfgs are loaded is important. Existing packages uses something like a number as a prefix. Example:</p>
<ul>
<li>/etc/kamailio/kamailio.cfg</li>
<li>/etc/kamailio/kamailio.cfg.d/01-interfaces</li>
<li>/etc/kamailio/kamailio.cfg.d/10-modules</li>
<li>/etc/kamailio/kamailio.cfg.d/50-custom-route</li>
</ul>
<p>etc..</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/2125?email_source=notifications&email_token=ABO7UZPVPVHHMOGJKQMRWILQTE5YDA5CNFSM4JLQW5JKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDWQCXI#issuecomment-552403293">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNPO32QU32AR52UOSDQTE5YDANCNFSM4JLQW5JA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZMZCSFBYKT5STP3VLDQTE5YDA5CNFSM4JLQW5JKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDWQCXI.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/2125?email_source=notifications\u0026email_token=ABO7UZPVPVHHMOGJKQMRWILQTE5YDA5CNFSM4JLQW5JKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDWQCXI#issuecomment-552403293",
"url": "https://github.com/kamailio/kamailio/issues/2125?email_source=notifications\u0026email_token=ABO7UZPVPVHHMOGJKQMRWILQTE5YDA5CNFSM4JLQW5JKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDWQCXI#issuecomment-552403293",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>