]> 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)
committerJoshua C. Colp <jcolp@sangoma.com>
Wed, 22 Oct 2025 15:47:14 +0000 (15:47 +0000)
commit26803e6b20d43da5e8e98683d7f4b60bcc2e7fee
tree5b7599ace64d17630da4dc46076f6fa2504b7afb
parent721fb4ed0373a96e07ce69e88e125bb2a45369b9
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