Fix a deadlock that occurs when func_volume is used on a local channel.
authorMark Michelson <mmichelson@digium.com>
Wed, 13 Jun 2012 21:17:13 +0000 (21:17 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 13 Jun 2012 21:17:13 +0000 (21:17 +0000)
commit21997aa7bba8e2b2bc6fc6b01f0de4cc8ea56131
tree072637b523a8f24004e123a9ffc0ccff0101997e
parentff0b561045201f140449af5601bc2ac5d3ea51a2
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)
........

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

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

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