Fix another issue that was causing crashes in chanspy. This introduces a new
commita97d4349a11ba93caff2b0d025fd02017f3ad313
authorrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Thu, 13 Mar 2008 21:38:16 +0000 (13 21:38 +0000)
committerrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Thu, 13 Mar 2008 21:38:16 +0000 (13 21:38 +0000)
tree328a01455a79762006feaaa5e9a01d520465436d
parentc92eeab599b308aa8dd706fe0464067bed197eaf
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: http://svn.digium.com/svn/asterisk/branches/1.4@108583 614ede4d-c843-0410-af14-a771ab80d22e
apps/app_chanspy.c
include/asterisk/channel.h
main/channel.c