mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
A situation like A calls B, A builtin_atxfers B to C, C parks B would lead to a crash. Thanks to file for telling me how to fix it!
(closes issue #13854) Reported by: Adam Lee Tested by: otherwiseguy git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@160390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -752,7 +752,7 @@ static int builtin_blindtransfer(struct ast_channel *chan, struct ast_channel *p
|
|||||||
res = finishup(transferee);
|
res = finishup(transferee);
|
||||||
if (res)
|
if (res)
|
||||||
res = -1;
|
res = -1;
|
||||||
else if (!ast_park_call(transferee, transferer, 0, NULL)) { /* success */
|
else if (!masq_park_call_announce(transferee, transferer, 0, NULL)) { /* success */
|
||||||
/* We return non-zero, but tell the PBX not to hang the channel when
|
/* We return non-zero, but tell the PBX not to hang the channel when
|
||||||
the thread dies -- We have to be careful now though. We are responsible for
|
the thread dies -- We have to be careful now though. We are responsible for
|
||||||
hanging up the channel, else it will never be hung up! */
|
hanging up the channel, else it will never be hung up! */
|
||||||
|
Reference in New Issue
Block a user