浏览代码

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

Kristiyan Peychev 3 年之前
父节点
当前提交
27a98c580f
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      src/modules/ims_registrar_scscf/cxdx_callbacks.c

+ 2 - 4
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);