In a channel destructor dispose of items that raise Stasis message properly
authorMatthew Jordan <mjordan@digium.com>
Sun, 7 Jul 2013 21:29:40 +0000 (21:29 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sun, 7 Jul 2013 21:29:40 +0000 (21:29 +0000)
commit70a46e2ee5dd5af7a36bad2223fd81acd6be8906
tree123eeef1dbeca59619c7fe5cb727187596156a01
parentb193c2873d27e15dfec521c7fef10411e8d1f5c8
In a channel destructor dispose of items that raise Stasis message properly

This patch reorders certain actions that may raise Stasis messages in the
channel destructor such that they occur before the Stasis cache is cleared.
Once the Stasis cache is cleared, its rather a bad idea to be trying to
publish information about a channel.

(closes issue ASTERISK-22001)
Reported by: Jonathan Rose

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/channel.c