Skip to content
Snippets Groups Projects
  • Russell Bryant's avatar
    6554a7bf
    Merged revisions 104106 via svnmerge from · 6554a7bf
    Russell Bryant authored
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
    r104106 | russell | 2008-02-25 17:42:42 -0600 (Mon, 25 Feb 2008) | 10 lines
    
    This patch fixes some pretty significant problems with how app_chanspy handles
    pointers to channels that are being spied upon.  It was very likely that a
    crash would occur if the channel being spied upon hung up.  This was because
    the current ast_channel handling _requires_ that the object is locked or else
    it could disappear at any time (except in the owning channel thread).  So, this
    patch uses some channel datastore magic on the spied upon channel to be able to
    detect if and when the channel goes away.
    (closes issue #11877)
    (patch written by me, but thanks to kpfleming for the idea, and to file for review)
    
    ........
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
    6554a7bf
    History
    Merged revisions 104106 via svnmerge from
    Russell Bryant authored
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
    r104106 | russell | 2008-02-25 17:42:42 -0600 (Mon, 25 Feb 2008) | 10 lines
    
    This patch fixes some pretty significant problems with how app_chanspy handles
    pointers to channels that are being spied upon.  It was very likely that a
    crash would occur if the channel being spied upon hung up.  This was because
    the current ast_channel handling _requires_ that the object is locked or else
    it could disappear at any time (except in the owning channel thread).  So, this
    patch uses some channel datastore magic on the spied upon channel to be able to
    detect if and when the channel goes away.
    (closes issue #11877)
    (patch written by me, but thanks to kpfleming for the idea, and to file for review)
    
    ........
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104107 65c4cc65-6c06-0410-ace0-fbb531ad65f3