[sr-dev] git:master:27a98c58: ims_registrar_scscf: replace unregistered state with deregistered where relevant for CxDx Registration Termination Requests

Daniel-Constantin Mierla miconda at gmail.com
Thu Apr 21 15:30:09 CEST 2022


Module: kamailio
Branch: master
Commit: 27a98c580f41a279417a8493461ff0567b3ce12a
URL: https://github.com/kamailio/kamailio/commit/27a98c580f41a279417a8493461ff0567b3ce12a

Author: Kristiyan Peychev <kristiyan.peychev at flolive.net>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-04-21T15:30:05+02:00

ims_registrar_scscf: replace unregistered state with deregistered where relevant for CxDx Registration Termination Requests

---

Modified: src/modules/ims_registrar_scscf/cxdx_callbacks.c

---

Diff:  https://github.com/kamailio/kamailio/commit/27a98c580f41a279417a8493461ff0567b3ce12a.diff
Patch: https://github.com/kamailio/kamailio/commit/27a98c580f41a279417a8493461ff0567b3ce12a.patch

---

diff --git a/src/modules/ims_registrar_scscf/cxdx_callbacks.c b/src/modules/ims_registrar_scscf/cxdx_callbacks.c
index ca601bd991..00fc280b4d 100644
--- a/src/modules/ims_registrar_scscf/cxdx_callbacks.c
+++ b/src/modules/ims_registrar_scscf/cxdx_callbacks.c
@@ -90,10 +90,9 @@ AAAMessage* cxdx_process_rtr(AAAMessage *rtr) {
 		while (impucontact) {
 			LM_DBG("Deleting contact with AOR [%.*s]\n", impucontact->contact->aor.len, impucontact->contact->aor.s);
 			ul.lock_contact_slot_i(impucontact->contact->sl);
-			impucontact->contact->state = CONTACT_DELETE_PENDING;
 			if (r->shead) {
 				//send NOTIFY to all subscribers of this IMPU.
-				notify_subscribers(r, impucontact->contact, 0, 0, IMS_REGISTRAR_CONTACT_UNREGISTERED);
+				notify_subscribers(r, impucontact->contact, 0, 0, IMS_REGISTRAR_CONTACT_DEREGISTERED);
 			}
 			impucontact->contact->state = CONTACT_DELETED;
 			ul.unlock_contact_slot_i(impucontact->contact->sl);
@@ -119,10 +118,9 @@ AAAMessage* cxdx_process_rtr(AAAMessage *rtr) {
 			while (impucontact) {
 				LM_DBG("Deleting contact with AOR [%.*s]\n", impucontact->contact->aor.len, impucontact->contact->aor.s);
 				ul.lock_contact_slot_i(impucontact->contact->sl);
-				impucontact->contact->state = CONTACT_DELETE_PENDING;
 				if (r->shead) {
 					//send NOTIFY to all subscribers of this IMPU.
-					notify_subscribers(r, impucontact->contact, 0, 0, IMS_REGISTRAR_CONTACT_UNREGISTERED);
+					notify_subscribers(r, impucontact->contact, 0, 0, IMS_REGISTRAR_CONTACT_DEREGISTERED);
 				}
 				impucontact->contact->state = CONTACT_DELETED;
 				ul.unlock_contact_slot_i(impucontact->contact->sl);




More information about the sr-dev mailing list