<p></p>
<p>Hi</p>
<p>When I register to my IMS core (Kamailio version 5.2),  ims_registrar_scscf modul sends notification with XML body showing all contacts with expires "0".</p>
<p>I noticed that , in ims_registrar_scscf module,  the notify_subscribers function is as shown below:</p>
<pre><code>int notify_subscribers(impurecord_t* impurecord, str *explit_dereg_contact, int num_explit_dereg_contact) {
    event_reg(0, impurecord, IMS_REGISTRAR_CONTACT_UNREGISTERED, 0, 0, explit_dereg_contact, num_explit_dereg_contact);

    return 0;
}
</code></pre>
<p>IMS_REGISTRAR_CONTACT_UNREGISTERED parameter is hardcoded.</p>
<p>I  noticed that in upper version of Kamailio this changed like that:</p>
<pre><code>int notify_subscribers(impurecord_t* impurecord, ucontact_t* contact, str *explit_dereg_contact, int num_explit_dereg_contact, int event_type) {
    event_reg(0, impurecord, contact, event_type, 0, 0, 0, explit_dereg_contact, num_explit_dereg_contact);

    return 0;
}

</code></pre>
<p>Also noticed that in upper version of Kamailio notify_subscribers is only called on de-registration.  But in version 5.2 it is called on registration and re-registration also. (This leads strange cases)</p>
<p>Could you please advise on this issue?</p>
<p>Best regards<br>
Erhan</p>
<h3>Troubleshooting</h3>
<h4>Reproduction</h4>

<h4>Debugging Data</h4>

<pre><code>(paste your debugging data here)
</code></pre>
<h4>Log Messages</h4>

<pre><code>(paste your log messages here)
</code></pre>
<h4>SIP Traffic</h4>

<pre><code>(paste your sip traffic here)
</code></pre>
<h3>Possible Solutions</h3>

<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>[stack@ims-test2 ~]$ /usr/local/sbin/kamailio -v
version: kamailio 5.2.0 (x86_64/linux) 40c16b
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>

<pre><code>[stack@ims-test2 ~]$ uname -a
Linux ims-test2.novalocal 3.10.0-1062.1.1.el7.x86_64 #1 SMP Fri Sep 13 22:55:44 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2692">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMF27VHWPEEN6ZZ7F3TFSEC5ANCNFSM4Z3M2L5A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZLL5DEZJ3DEH525ARDTFSEC5A5CNFSM4Z3M2L5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4MRPKA7A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2692",
"url": "https://github.com/kamailio/kamailio/issues/2692",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>