<ul class="task-list">
<li>add xavp when registered returns success</li>
<li>add reg_received_avp param for strict matching the contact</li>
<li>add reg_contact_avp param for strict matching the contact</li>
<li>add xavp to reg_fetch_contacts</li>
</ul>

<p>modparam("usrloc", "xavp_contact", "ulattrs")<br>
modparam("registrar", "reg_received_avp", "$avp(chk_origin)")<br>
modparam("registrar", "reg_contact_avp", "$avp(chk_contact)")</p>

<p>using xavp with registered<br>
   $avp(chk_origin) = $su;<br>
   $avp(chk_contact) = $(ct{nameaddr.uri});<br>
   if (registered("location","$fu")) {<br>
       xlog("L_INFO", "$ci|log| checking $fu - $xavp(ulattrs=>account_id)");<br>
  }</p>

<p>using xavp with reg_fetch_contacts<br>
  if(reg_fetch_contacts("location", "$fu", "caller")) {<br>
         xlog("L_INFO", "$ci|log| checking $fu - $(ulc(caller=>ulattrs=>account_id))");<br>
   }</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/kamailio/kamailio/pull/91'>https://github.com/kamailio/kamailio/pull/91</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>registrar - add user xavp on successful registered call</li>
  <li>registrar - add optional avp params for usrloc comparison</li>
  <li>registrar - add xavp to reg_fetch_contacts</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/91/files#diff-0">modules/registrar/lookup.c</a>
    (35)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/91/files#diff-1">modules/registrar/reg_mod.c</a>
    (50)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/91/files#diff-2">modules/registrar/reg_mod.h</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/91/files#diff-3">modules/registrar/regpv.c</a>
    (307)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/91.patch'>https://github.com/kamailio/kamailio/pull/91.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/91.diff'>https://github.com/kamailio/kamailio/pull/91.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/91">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36Zdwn-u__RQXv48vcgyEW52A7Ucbnks5ns5OMgaJpZM4DhsB2.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/91"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>