<p>The problem seems to be that ci_pack when calling only with msg was not setting the intance and reg_id into the contact_info, so ul.get_ucontact_by_instance at <a href="https://github.com/kamailio/kamailio/blob/master/modules/registrar/save.c#L582">https://github.com/kamailio/kamailio/blob/master/modules/registrar/save.c#L582</a> was at <a href="https://github.com/kamailio/kamailio/blob/master/modules/usrloc/urecord.c#L773-L775">https://github.com/kamailio/kamailio/blob/master/modules/usrloc/urecord.c#L773-L775</a> using get_ucontact</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/issues/278#issuecomment-128648029">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZQAzXHyl41Xm04CHYHghoUIbU-p6ks5olGyOgaJpZM4FnC-8.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/issues/278#issuecomment-128648029"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>