Merged revisions 108583 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Thu, 13 Mar 2008 21:40:43 +0000 (21:40 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 13 Mar 2008 21:40:43 +0000 (21:40 +0000)
commit835df7d30f895e4ce18cdc7d870461d07db06a07
tree104d02463b6f0b711b7802bc61a346ea6985044f
parent5f58a11ff2daa1d462a1d010e827bff3509a622e
Merged revisions 108583 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r108583 | russell | 2008-03-13 16:38:16 -0500 (Thu, 13 Mar 2008) | 11 lines

Fix another issue that was causing crashes in chanspy.  This introduces a new
datastore callback, called chan_fixup().  The concept is exactly like the
fixup callback that is used in the channel technology interface.  This callback
gets called when the owning channel changes due to a masquerade.  Before this
was introduced, if a masquerade happened on a channel being spyed on, the
channel pointer in the datastore became invalid.

(closes issue #12187)
(reported by, and lots of testing from atis)
(props to file for the help with ideas)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_chanspy.c
include/asterisk/channel.h
main/channel.c