Module: sip-router
Branch: hpw/branch_failure_route
Commit: 4cdd9f7502a11bc48d0413811606444b24b984e2
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4cdd9f7…
Author: Hugh Waite <hugh.waite(a)crocodile-rcs.com>
Committer: Hugh Waite <hugh.waite(a)crocodile-rcs.com>
Date: Wed Apr 3 15:06:35 2013 +0100
modules/registrar: Allow unregister for ruids in branch_failure_route
- unregister(domain, uri, ruid) is accepted in branch_failure_route
- unregister(domain) is not.
---
modules/registrar/reg_mod.c | 2 +-
modules/registrar/save.c | 1 -
2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/registrar/reg_mod.c b/modules/registrar/reg_mod.c
index f07a44a..a32909a 100644
--- a/modules/registrar/reg_mod.c
+++ b/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 },
diff --git a/modules/registrar/save.c b/modules/registrar/save.c
index 9c76ef7..54de08b 100644
--- a/modules/registrar/save.c
+++ b/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);
}