]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_stasis_device_state: Fix delete ARI Devicestates after asterisk restart.
authorJose Lopes <jose.lopes@nfon.com>
Wed, 30 Jul 2025 12:49:16 +0000 (13:49 +0100)
committerGeorge Joseph <gjoseph@sangoma.com>
Wed, 17 Sep 2025 20:04:27 +0000 (14:04 -0600)
commitf198ea85d6bbd1165ec3c7c55721fd743d27b202
tree437aa8cf8935d4aa9fc504fc421781fc07006c24
parent540b1387c3e8d47c7237e784e6f323f744f9ef2e
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 4b9a373ec5d7c50055120306bd514a4e38bdb373)
res/res_stasis_device_state.c