]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Patch to prevent stopping the active generator when it is not the silence
authorBrent Eagles <beagles@digium.com>
Tue, 13 Nov 2012 18:48:43 +0000 (18:48 +0000)
committerBrent Eagles <beagles@digium.com>
Tue, 13 Nov 2012 18:48:43 +0000 (18:48 +0000)
commit852bc686c973951cebd39e5828393d87b60d38f1
treeb9e24de12e01faa8ece9e0bf745e1b95af9475f2
parent4e04ea29c7f7137b838b3b49d8c97f8e097cd51f
Patch to prevent stopping the active generator when it is not the silence
generator.

This patch introduces an internal helper function to safely check whether the
current generator is the one that is expected before deactivating it. The
current externally accessible ast_channel_stop_generator() function has been
modified to be implemented in terms of the new function.

(closes issue ASTERISK-19918)
Reported by: Eduardo Abad
........

Merged revisions 376199 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 376208 from http://svn.asterisk.org/svn/asterisk/branches/10

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