Browse code

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

Daniel-Constantin Mierla authored on 13/08/2019 08:01:35
Showing 1 changed files
... ...
@@ -192,9 +192,9 @@ static cmd_export_t cmds[] = {
192 192
 	{"add_sock_hdr", (cmd_function)w_add_sock_hdr,  1,  fixup_spve_null, 0,
193 193
 			REQUEST_ROUTE },
194 194
 	{"unregister",   (cmd_function)w_unregister,  2,  unreg_fixup, 0,
195
-			REQUEST_ROUTE| FAILURE_ROUTE },
195
+			ANY_ROUTE },
196 196
 	{"unregister",   (cmd_function)w_unregister2, 3, unreg_fixup, 0,
197
-			REQUEST_ROUTE| FAILURE_ROUTE },
197
+			ANY_ROUTE },
198 198
 	{"reg_fetch_contacts", (cmd_function)pv_fetch_contacts, 3,
199 199
 			fetchc_fixup, 0,
200 200
 			REQUEST_ROUTE| FAILURE_ROUTE },