]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_refer: Fix occasional unexpected BYE sent after receiving a REFER.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 10 Mar 2015 16:04:32 +0000 (16:04 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 10 Mar 2015 16:04:32 +0000 (16:04 +0000)
commitcae712d986211c636f669101bf8071975570fbcf
tree98927cf0a348a064390081a65f0338b813922571
parent110b99646cec9128d9dec4bc764dfb585b3e9844
res_pjsip_refer: Fix occasional unexpected BYE sent after receiving a REFER.

A race condition happened between initiating a transfer and requesting
that a dialog termination be delayed.  Occasionally, the transferrer
channels would exit the bridge and hangup before the dialog termination
delay was requested.

* Made request dialog termination delay before initiating the transfer
action.  If the transfer fails then cancel the delayed dialog termination
request.

ASTERISK-24755 #close
Reported by: John Bigelow

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@432668 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/res_pjsip_session.h
res/res_pjsip_refer.c
res/res_pjsip_session.c
res/res_pjsip_session.exports.in