]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Merged revisions 279946 via svnmerge from
authorDavid Vossel <dvossel@digium.com>
Tue, 27 Jul 2010 20:57:00 +0000 (20:57 +0000)
committerDavid Vossel <dvossel@digium.com>
Tue, 27 Jul 2010 20:57:00 +0000 (20:57 +0000)
commitdf89f8da6a4097f122f0b650177d1d35c08cf539
treeffaa9b99b2e38a4cc20559c18f67abbff1a95893
parente7b5069c9fc581cbb3f391f4ecf8be5046e57e93
Merged revisions 279946 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r279946 | dvossel | 2010-07-27 15:54:32 -0500 (Tue, 27 Jul 2010) | 24 lines

  Merged revisions 279945 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r279945 | dvossel | 2010-07-27 15:33:40 -0500 (Tue, 27 Jul 2010) | 19 lines

    remove empty audiohook write list on channel

    If a channel has an audiohook write list created on it, that
    list stays on the channel until the channel is destroyed.  There
    is no reason to keep that list on the channel if it becomes empty.
    If it is empty that just means we are doing needless translating
    for every ast_read and ast_write.  This patch removes the audiohook
    list from the channel once it is detected to be empty on either a
    read or write.  If a audiohook is added back to the channel after
    this list is destroyed, the list just gets recreated as if it never
    existed to begin with.

    (closes issue #17630)
    Reported by: manvirr

    Review: https://reviewboard.asterisk.org/r/799/
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/audiohook.h
main/audiohook.c
main/channel.c