Prevent a crash when SIP blonde transferring an unbridged call.
authorMark Michelson <mmichelson@digium.com>
Fri, 17 Apr 2009 20:20:23 +0000 (20:20 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 17 Apr 2009 20:20:23 +0000 (20:20 +0000)
commit4bf5e1b805a3cf4ba04beb19fec8f5ced027ee4d
tree6b78892bb9b64316879ef09e8f24c7872ab2e94e
parent7a7f17ce4ddfe5699986af3534a768ca9773ca02
Prevent a crash when SIP blonde transferring an unbridged call.

If one attempts to use the attended transfer button on a SIP phone
to transfer an unbridged call (such as a call to an IVR) but hangs
up while the target of the transfer is still ringing, we need to not
crash.

The problem was that ast_hangup was called from outside the channel
thread.

AST-211

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