<p>Sorry for late reply since it was lunar new year in Taiwan.</p>

<p>The reason we need the the advertised address is we have several kamailio servers hosted in different cloud hosting service and we will manually get the <code>socket</code> information (IP address in our case) from <code>location</code> table. Therefore if the address stored in <code>socket</code> column are internal IPs then it would fail when our other relay servers try to communicate with those internal IPs. (Since other servers may be located in different datacentre).</p>

<p>But I think it's our design problem, your suggestion is great and we will be sorting out according to it.</p>

<p>Thanks!</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-183632338">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZXLacr8BCJMWRQZiyskoJrNOYscZks5pju5XgaJpZM4HA6Cj.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-183632338"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>