[sr-dev] git:master:0cc64de7: registrar: allow unregister() to be used in any route

Daniel-Constantin Mierla miconda at gmail.com
Tue Aug 13 10:04:26 CEST 2019


Module: kamailio
Branch: master
Commit: 0cc64de7530fe90cbe3183caa494d9ef9941ee51
URL: https://github.com/kamailio/kamailio/commit/0cc64de7530fe90cbe3183caa494d9ef9941ee51

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-08-13T10:01:35+02:00

registrar: allow unregister() to be used in any route

---

Modified: src/modules/registrar/registrar.c

---

Diff:  https://github.com/kamailio/kamailio/commit/0cc64de7530fe90cbe3183caa494d9ef9941ee51.diff
Patch: https://github.com/kamailio/kamailio/commit/0cc64de7530fe90cbe3183caa494d9ef9941ee51.patch

---

diff --git a/src/modules/registrar/registrar.c b/src/modules/registrar/registrar.c
index 83730e9a19..ec374571e9 100644
--- a/src/modules/registrar/registrar.c
+++ b/src/modules/registrar/registrar.c
@@ -192,9 +192,9 @@ static cmd_export_t cmds[] = {
 	{"add_sock_hdr", (cmd_function)w_add_sock_hdr,  1,  fixup_spve_null, 0,
 			REQUEST_ROUTE },
 	{"unregister",   (cmd_function)w_unregister,  2,  unreg_fixup, 0,
-			REQUEST_ROUTE| FAILURE_ROUTE },
+			ANY_ROUTE },
 	{"unregister",   (cmd_function)w_unregister2, 3, unreg_fixup, 0,
-			REQUEST_ROUTE| FAILURE_ROUTE },
+			ANY_ROUTE },
 	{"reg_fetch_contacts", (cmd_function)pv_fetch_contacts, 3,
 			fetchc_fixup, 0,
 			REQUEST_ROUTE| FAILURE_ROUTE },




More information about the sr-dev mailing list