<p>It proved not to be complex, just a matter of the current config grammar. Even with the old versions you can set the port to <code>0</code> and then it should not appear in the headers.</p>
<p>Anyhow, I pushed also a commit that allows advertise with host only, being an alias to <code>... advertise host:0</code>. When listing the sockets via rpc, the port 0 will appear, but in headers should be no port.</p>
<p>I did basic testing, if it does not work, reopen this issue.</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/1884#issuecomment-473916147">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZatQaEvMdLxCCkWQXLiKGANDQ0UFks5vX5jEgaJpZM4bk69p">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZeM0t6cJuJdzF2Hc-ZaNV_7UujC2ks5vX5jEgaJpZM4bk69p.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@miconda in #1884: It proved not to be complex, just a matter of the current config grammar. Even with the old versions you can set the port to `0` and then it should not appear in the headers.\r\n\r\nAnyhow, I pushed also a commit that allows advertise with host only, being an alias to `... advertise host:0`. When listing the sockets via rpc, the port 0 will appear, but in headers should be no port.\r\n\r\nI did basic testing, if it does not work, reopen this issue."}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1884#issuecomment-473916147"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1884#issuecomment-473916147",
"url": "https://github.com/kamailio/kamailio/issues/1884#issuecomment-473916147",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>