]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chnan_sip: Set SIP_DEFER_BYE_ON_TRANSFER prior to calling bridge blind transfer
authorMatthew Jordan <mjordan@digium.com>
Fri, 14 Feb 2014 12:41:13 +0000 (12:41 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 14 Feb 2014 12:41:13 +0000 (12:41 +0000)
commitf0019818629c546ecc59a76c680cef0619e4c68f
treee6f54a5b0ee95b9662645e6a1404d35f41891044
parent199c7de764d0d6b9acb3b6f3e990f8923c14ca02
chnan_sip: Set SIP_DEFER_BYE_ON_TRANSFER prior to calling bridge blind transfer

This patch moves setting SIP_DEFER_BY_ON_TRANSFER prior to calling
ast_bridge_transfer_blind. This prevents a BYE from being sent prior to the
NOTIFY request that informs the transferor if the transfer succeeded or failed.

This patch also clears said flag from the off nominal NOTIFY paths in the
local_attended_transfer code, as once we've sent the NOTIFY request it is safe
to send by the BYE request.

This was caught by the blind-transfer-accountcode test in the Asterisk Test
Suite.

(closes issue ASTERISK-23290)
Reported by: Matt Jordan

Review: https://reviewboard.asterisk.org/r/3214/
........

Merged revisions 408069 from http://svn.asterisk.org/svn/asterisk/branches/12

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