]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix a deadlock that occurs when func_volume is used on a local channel.
authorMark Michelson <mmichelson@digium.com>
Wed, 13 Jun 2012 20:59:01 +0000 (20:59 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 13 Jun 2012 20:59:01 +0000 (20:59 +0000)
commita64586e5c2a7822a3fadb9dac913f56d1866c90c
tree7eae1f0092855f337ac53c6d4869a1d8421b9a84
parent89ff2d1ed74700d5c345aa124a96f085e228c423
Fix a deadlock that occurs when func_volume is used on a local channel.

This was discovered by trying to perform a call forward to an extension
that makes use of func_volume. When the local channel is optimized away,
the datastore on the local;2 channel would have its audiohook destroyed
rather than detaching the audiohook from the channel and then destroying
it.

With this patch, func_volume's datastore destructor takes the proper
route of detaching the audiohook and then destroying it.

(closes issue ASTERISK-19611)
reported by Volker Sauer
Patches:
ASTERISK-19611.patch uploaded by Mark Michelson (license #5049)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@368898 65c4cc65-6c06-0410-ace0-fbb531ad65f3
funcs/func_volume.c