<p>Think that is useful Kamailio enhancement.<br>
Here is example how use systemd activated sockets.<br>
<a href="https://github.com/apache/httpd/blob/969e885f2e8707ae7c5330ab24c626f7154e8f8e/server/listen.c#L296-L322">Example 1</a></p>
<p>Then need to get received socket info and map to <code>listen</code> directive in kamailio config for advertised IP info.<br>
If no listen directive is provided, then one of option may be applied.</p>
<ol>
<li>use socket as is, without advertised IP info;</li>
<li>generate error like "systemd activated sockets not match to listen directives in kamailio config file".</li>
</ol>

<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/293#issuecomment-490001037">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZL2HDGTCSMQO27LZMLPUFBZFANCNFSM4BN4PIQQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZIZMW37OHBY65OHDXTPUFBZFA5CNFSM4BN4PIQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODU2NFDI.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/293#issuecomment-490001037",
"url": "https://github.com/kamailio/kamailio/issues/293#issuecomment-490001037",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>