Module: kamailio
Branch: master
Commit: 0cc64de7530fe90cbe3183caa494d9ef9941ee51
URL:
https://github.com/kamailio/kamailio/commit/0cc64de7530fe90cbe3183caa494d9e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/0cc64de7530fe90cbe3183caa494d9e…
Patch:
https://github.com/kamailio/kamailio/commit/0cc64de7530fe90cbe3183caa494d9e…
---
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 },