Rework stasis cache clear events
authorKinsey Moore <kmoore@digium.com>
Fri, 7 Jun 2013 12:56:56 +0000 (12:56 +0000)
committerKinsey Moore <kmoore@digium.com>
Fri, 7 Jun 2013 12:56:56 +0000 (12:56 +0000)
commit759a7e4a30b5e69738670494e5c19b6982a34644
tree56e190b02bf90267738a4da3f0c8bb87e55424eb
parent611416623748504be81c58b455205a4bc7fff414
Rework stasis cache clear events

Stasis cache clear message payloads now consist of a stasis_message
representative of the message to be cleared from the cache. This allows
multiple parallel caches to coexist and be cleared properly by the same
cache clear message even when keyed on different fields.

This change fixes a bug where multiple cache clears could be posted for
channels. The cache clear is now produced in the destructor instead of
ast_hangup.

Additionally, dummy channels are no longer capable of producing channel
snapshots.

Review: https://reviewboard.asterisk.org/r/2596

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@390830 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/stasis.h
main/bridging.c
main/channel.c
main/endpoints.c
main/stasis_cache.c
main/stasis_channels.c
tests/test_stasis.c