<p>The purpose of the value in the database table 'location' is for internal usage of Kamailio. Why would you need to be the advertised address? Is for external purposes?</p>

<p>That value is used by kamailio when doing the lookup(location) to find the appropriate socket. If the socket is not found, then the field is ignored.</p>

<p>If you just need the socket for some external purpose, better save it as a location attribute, it will be stored in location_attrs table.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/471#issuecomment-180520260">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZfWH4yY0mA1Tj8g_i-PsTMZ6bcoZks5phPQkgaJpZM4HA6Cj.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/471#issuecomment-180520260"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>