Explorar o código

modules/registrar: Allow unregister for ruids in branch_failure_route

- unregister(domain, uri, ruid) is accepted in branch_failure_route
- unregister(domain) is not.
Hugh Waite %!s(int64=12) %!d(string=hai) anos
pai
achega
4cdd9f7502
Modificáronse 2 ficheiros con 1 adicións e 2 borrados
  1. 1 1
      modules/registrar/reg_mod.c
  2. 0 1
      modules/registrar/save.c

+ 1 - 1
modules/registrar/reg_mod.c

@@ -188,7 +188,7 @@ static cmd_export_t cmds[] = {
 	{"unregister",   (cmd_function)w_unregister,  2,  unreg_fixup, 0,
 			REQUEST_ROUTE| FAILURE_ROUTE },
 	{"unregister",   (cmd_function)w_unregister2, 3, unreg_fixup, 0,
-			REQUEST_ROUTE| FAILURE_ROUTE },
+			REQUEST_ROUTE| FAILURE_ROUTE | BRANCH_FAILURE_ROUTE },
 	{"reg_fetch_contacts", (cmd_function)pv_fetch_contacts, 3, 
 			fetchc_fixup, 0,
 			REQUEST_ROUTE| FAILURE_ROUTE },

+ 0 - 1
modules/registrar/save.c

@@ -997,7 +997,6 @@ int unregister(struct sip_msg* _m, udomain_t* _d, str* _uri, str *_ruid)
 			LM_WARN("could not delete contact\n");
 			return -1;
 		}
-		ul.release_urecord(r);
 		ul.unlock_udomain(_d, &aor);
 	}