]> git.ipfire.org Git - thirdparty/asterisk.git/commit
devicestate: Don't publish redundant device state messages.
authorJoshua C. Colp <jcolp@sangoma.com>
Fri, 17 Oct 2025 11:57:42 +0000 (08:57 -0300)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 22 Oct 2025 15:47:21 +0000 (15:47 +0000)
commitbd5c4093714e53738c9c0bfec8d2b0179ae7fbb4
tree0f65692645af3aead3ed82fdf70d28afa60a167b
parent5766460cc7ee4c2251b8b1b8f769ab534864cb00
devicestate: Don't publish redundant device state messages.

When publishing device state check the local cache for the
existing device state. If the new device state is unchanged
from the prior one, don't bother publishing the update. This
can reduce the work done by consumers of device state, such
as hints and app_queue, by not publishing a message to them.

These messages would most often occur with devices that are
seeing numerous simultaneous channels. The underlying device
state would remain as in use throughout, but an update would
be published as channels are created and hung up.
main/devicestate.c