]> 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:35 +0000 (19:20 +0000)
commitdd1b4b38cf286d20f059c1f39a7f343a8198a451
treec216b1b0a6f0bb42f3db3f4d000bbcbec6d12623
parentb876d624d7e0a503c53f9e00b1fffdd796a2ac8a
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