registrar: allow unregister() to be used in any route
authorDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 13 Aug 2019 08:01:35 +0000 (10:01 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 13 Aug 2019 08:01:35 +0000 (10:01 +0200)
src/modules/registrar/registrar.c

index 83730e9..ec37457 100644 (file)
@@ -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 },