]> 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)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 30 Oct 2025 16:09:11 +0000 (16:09 +0000)
commitb6556cc78972ce4780c5447247fecc09491aa823
treeb5a4ca190471f6f9b4b315d8e5e1f532ce436731
parent1b98cd1b2507e0fabd816707227405a6910fde7c
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