]> 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 17:40:38 +0000 (11:40 -0600)
commit29dcdde3c0cb8a598bf58744c2135e95ab682567
tree68caff42ec75bd4867e63eb5018175d82a35f67a
parentbda8c98bbd83d73b32990a9bcba0acc34306ab29
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 55a4bd6d5ba6655e03591f70486d1d04a8c65abb)
res/res_stasis_device_state.c