mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
res_stasis_device_state: Fix delete ARI Devicestates after asterisk restart.
After an asterisk restart, the deletion of ARI Devicestates didn't
return error, but the devicestate was not deleted.
Found a typo on populate_cache function that created wrong cache for
device states.
This bug caused wrong assumption that devicestate didn't exist,
since it was not in cache, so deletion didn't returned error.
Fixes: #1327
(cherry picked from commit 4b9a373ec5
)
This commit is contained in:
committed by
Asterisk Development Team
parent
636d74f577
commit
5951994ca3
@@ -283,7 +283,7 @@ static void populate_cache(void)
|
||||
if (!ast_strlen_zero(name)) {
|
||||
ast_devstate_changed(
|
||||
ast_devstate_val(entry->data),
|
||||
AST_DEVSTATE_CACHABLE, "%s%s\n",
|
||||
AST_DEVSTATE_CACHABLE, "%s%s",
|
||||
DEVICE_STATE_SCHEME_STASIS, name + 1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user