]> git.ipfire.org Git - thirdparty/asterisk.git/commit
devicestate: Don't create topic when change isn't cached.
authorJoshua Colp <jcolp@digium.com>
Wed, 25 Jul 2018 10:32:31 +0000 (10:32 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 25 Jul 2018 19:20:57 +0000 (14:20 -0500)
commite5c0ac6a640d39619b4e49c86a3ba26da3c608fa
tree0b1229169e18800762fa05ab516aa66400318433
parent4a51f2792e07f1f83889b4f4ef0fa5352855c9d6
devicestate: Don't create topic when change isn't cached.

When publishing a device state the change can be marked as being
cachable or not. If it is not cached the change is just published
to all interested and not stored away for later query. This was not
fully taken into account when publishing in stasis. The act of
publishing would create a topic for the device even if it may be
ephemeral.

This change makes it so messages which are not cached won't create
a topic for the device. If a topic does already exist it will be
published to but otherwise the change will only be published to
the device state all topic.

ASTERISK-27591

Change-Id: I18da0e8cbb18e79602e731020c46ba4101e59f0a
include/asterisk/stasis.h
main/devicestate.c
main/stasis.c