]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix potential crashes during SIP attended transfers.
authorMark Michelson <mmichelson@digium.com>
Fri, 30 Nov 2012 16:23:46 +0000 (16:23 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 30 Nov 2012 16:23:46 +0000 (16:23 +0000)
commitceebaed1640619983e06950050da8020c5d4a7fc
tree07a14c66626afe60e43bbb94ac5904b66588d470
parent827a3924acd1ec8cf958e0c22e3dad1acf4bef19
Fix potential crashes during SIP attended transfers.

The principal behind this patch is simple. During a transfer,
we manipulate channels that are owned by a separate thread than
the one we currently are running in, so it makes sense that we
need to grab a reference to the channels so that they cannot
disappear out from under us.

In the wild, crashes were sometimes seen when the transferring
party would hang up the call before the transfer target answered
the call. The most common place to see the crash occur was when
attempting to send a connected line update to the transferer
channel.

(closes issue ASTERISK-20226)
Reported by Jared Smith
Patches:
ASTERISK-20226.patch uploaded by Mark Michelson (License #5049)
Tested by: Jared Smith
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@376916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c