]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
func_presencestate.c: Allow `NOT_SET` to be set from CLI.
authorSean Bright <sean@seanbright.com>
Thu, 1 Jan 2026 17:50:07 +0000 (12:50 -0500)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Mon, 5 Jan 2026 14:45:21 +0000 (14:45 +0000)
Resolves: #1647

funcs/func_presencestate.c

index ab0be795d9249a55ac7afc86532f68841932b4a9..7fd69a0971d973f5e886bf91f9e324ee4f948e08 100644 (file)
@@ -430,10 +430,6 @@ static char *handle_cli_presencestate_change(struct ast_cli_entry *e, int cmd, s
                return CLI_SHOWUSAGE;
        }
 
-       if (state_val == AST_PRESENCE_NOT_SET) {
-               return CLI_SHOWUSAGE;
-       }
-
        ast_cli(a->fd, "Changing %s to %s\n", dev, args);
 
        ast_db_put(astdb_family, dev, state);