Browse Source

modules/ims_registrar_pcscf: Add domain unlock to prevent deadlock when processing notifies

Richard Good 11 years ago
parent
commit
3630f36c1e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules/ims_registrar_pcscf/notify.c

+ 2 - 1
modules/ims_registrar_pcscf/notify.c

@@ -106,7 +106,8 @@ int process_contact(udomain_t * _d, int expires, str contact_uri, int contact_st
 	if (ul.get_pcontact(_d, &contact_uri, &pcontact) != 0) { //contact does not exist
 	    if (contact_state == STATE_TERMINATED) {
 		LM_DBG("This contact: <%.*s> is in state terminated and is not in usrloc, ignore\n", contact_uri.len, contact_uri.s);
-		return 1;
+		ret = RESULT_CONTACTS_FOUND;
+		goto done;
 	    }
 		LM_DBG("This contact: <%.*s> is in state active and is not in usrloc so adding it to usrloc, expires: %d which is in %d seconds\n", contact_uri.len, contact_uri.s, expires, expires-local_time_now);
 		if (ul.insert_pcontact(_d, &contact_uri, &ci, &pcontact) != 0) {