]> 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:20:13 +0000 (18:20 +0000)
committerBrent Eagles <beagles@digium.com>
Tue, 13 Nov 2012 18:20:13 +0000 (18:20 +0000)
commit5c76050e475c108510aa9dce77fdc54f206e269f
tree5e08093c2337290fb363b97e94f77947e7711a78
parentd72c2fc5208004a78de4d6f4d02ff76f2614e819
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

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