<p>For the first patch -- the behaviour is like that on purpose, because one can have replicated location records via database and the case can be that register was processed by one server and records are loaded by another server, there being different IPs for each servers. Another situation is changing the ip address and restarting kamailio. If there is no NAT involved, the location records work fine when that socket field is ignored.</p>

<p>If you want to restrict this behaviour and not allow loading those records, then add a module parameter to control it.</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/pull/306#issuecomment-135316447">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZWDffnffIiOyP-uEsSO6g6lG_PZvks5orq4OgaJpZM4FzGuQ.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/pull/306#issuecomment-135316447"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>