<p>This fix is incorrect and I will revert it. The provided patch "solves" the problem in 2 cases, but fails to do so in others such as when the Contact header has a *.</p>

<p>But most importantly, it breaks when a single user agent registers multiple accounts from the same IP and port. In this case nat_traversal will create a single NAT_Contact structure, and when one of the accounts unregisters we'd stop pinging, even if others are still registered. This problem is known, but it never seemed worth fixing because it would involve keeping track of the registered AoR for NAT_Contact. It can be fixed, but the proposed fix in this PR doesn't do so.</p>

<p>Also, I'd appreciate a heads up (by @-ing me or <a href="https://github.com/danpascu" class="user-mention">@danpascu</a>) next time one of the modules we maintain is modified, this PR got merged in 4 days, we happned to be on vacation and this wasn't urgent whatsoever.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/366#issuecomment-64173566">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcicbFcChCVQ9udJJV7vFdbjroExoiks5nQvzCgaJpZM4Cwn4u.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/OpenSIPS/opensips/pull/366#issuecomment-64173566"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>