]> 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)
committerJose Lopes <jose.lopes@nfon.com>
Mon, 18 Aug 2025 14:53:16 +0000 (14:53 +0000)
commit7c73bb235e8d9a5fc338398ad33b5934cbbbbc01
tree640065e58c8929eb5ddb74267b88846de4838269
parent5dd3ceaef5f1f9e96df39d09ea7907acae8c7c6b
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
res/res_stasis_device_state.c