<p>Hi,</p>

<p>When client send register message that reg-id in contact is "0", kamailio failed to update contacts info, but it will send 200-register to client, this will cause one issue that no one can find this client(will always be 404 error)</p>

<p>reg-id in message:<br>
Contact: sip:2015@100080:5060;ob;reg-id=0<br>
Related logs:<br>
 /usr/local/sbin/kamailio[30325]: ERROR: registrar [savec:402]: pack_ci(): invalid reg-id value<br>
 /usr/local/sbin/kamailio[30325]: ERROR: registrar [savec:685]: update_contacts(): failed to pack contact specific info</p>

<p>I think registrar should reply 4xx message when reg-id's value is 0</p>

<p>Best Regards,<br>
Shengy</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/497">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZcdrOMqxcyMA4ilc9QJ8brOwPEYqks5phALagaJpZM4HT-Fo.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/497"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>