res_pjsip_refer: Fix occasional unexpected BYE sent after receiving a REFER.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 10 Mar 2015 16:08:40 +0000 (16:08 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 10 Mar 2015 16:08:40 +0000 (16:08 +0000)
commite7ee83ea9031c6a80da6f6838083b7608d32a828
treefad79ade52711c4968c92c8b74b635e0cba44011
parent1ce529d30e900054b9d2417380945d451012313f
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/
........

Merged revisions 432668 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@432669 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