]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis: Add function to delete topic from pool
authorGeorge Joseph <gjoseph@digium.com>
Thu, 20 Sep 2018 14:41:15 +0000 (08:41 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 20 Sep 2018 18:13:22 +0000 (12:13 -0600)
commitd277db4a38009796937d8e9c0d6d79b4ff839e74
treee103e9eddece78ae7630862504158e37bc5acad7
parente3e24a0844ee4792deffcf470752e1be0de873d8
stasis:  Add function to delete topic from pool

There's been a long standing leak when using topic pools.  The
topics in the pool get cleaned up when the last pool reference is
released but you can't remove a topic specifically.  If you reloaded
app_voicemail for instance, and mailboxes went away, their topics
were left in the pool.

* Added stasis_topic_pool_delete_topic() so modules can clean up
  topics from pools.
* Registered the topic pool containers so it can be examined from
  the CLI when AO2_DEBUG is enabled.  They'll be named
  "<topic_pool_name>-pool".

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