<p>Hi <a href="https://github.com/saghul" class="user-mention">@saghul</a>,</p>

<p>The only way I was able to save that contact in the DB was using <code>fix_nated_register()</code> function, the <code>received</code> contact attribute being set. This way the <code>contact</code> is not being checked when OpenSIPS starts again. If <code>received</code> not set, the contact is checked in <code>compute_next_hop()</code> (ucontact.c:59) using <code>parse_uri()</code>. In conclusion, the only way I am able to replicate this is calling <code>fix_nated_register()' when saving the contact and setting the</code>received` attribute to NULL after it has been inserted in the DB. Do you have other method to put only the contact from the OpenSIPS?  </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/issues/729#issuecomment-166279611">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciaPc59AWO_B3YeGB0K-SMQLFe7t4ks5pR93NgaJpZM4G3dJy.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/issues/729#issuecomment-166279611"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>