<p>without this patch nathelper build request-uri from received<br>
if it's set and falls back to contact.</p>

<p>Now we have an option to send the Contact (that has the username part) no matter what.</p>

<p>We used this in order to fix problems with FritzBox subscribers but seeing <a href="https://www.mail-archive.com/sr-users@lists.sip-router.org/msg13081.html">https://www.mail-archive.com/sr-users@lists.sip-router.org/msg13081.html</a> maybe this is useful for everybody</p>

<p>with <a href="https://github.com/sipwise" class="user-mention">@sipwise</a> hat on</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/linuxmaniac/kamailio vseva/nathelper_contact_only</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/kamailio/kamailio/pull/31'>https://github.com/kamailio/kamailio/pull/31</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>usrloc: add GAU_OPT_ONLY_CONTACT option and get_all_ucontacts_opt() in order to use it</li>
  <li>nathelper: add contact_only option to ignore "received" field from usrloc and use contact info for building the ping message</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/31/files#diff-0">modules/nathelper/doc/nathelper_admin.xml</a>
    (20)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/31/files#diff-1">modules/nathelper/nathelper.c</a>
    (12)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/31/files#diff-2">modules/usrloc/dlist.c</a>
    (34)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/31/files#diff-3">modules/usrloc/dlist.h</a>
    (14)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/31/files#diff-4">modules/usrloc/usrloc.c</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/31/files#diff-5">modules/usrloc/usrloc.h</a>
    (6)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/31.patch'>https://github.com/kamailio/kamailio/pull/31.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/31.diff'>https://github.com/kamailio/kamailio/pull/31.diff</a></li>
</ul>

<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/31">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZcXHXT82HUw7lo9GTRXmV8jaUdTPks5nhOlrgaJpZM4DRpbi.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/31"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>