]> 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:21:28 +0000 (19:21 +0000)
commitc52c915d7fe9c3472b1567a0ee9ec9b808be5779
tree7af1262b839b73e9de78b25ba1cd3ba1b96a53aa
parentc0c0e16fd7d02f44939d2f88f19c3e7a70092a91
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