]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_session: Delay sending BYE if a re-INVITE transaction is in progress.
authorAsterisk Autobuilder <asteriskteam@digium.com>
Fri, 19 Dec 2014 20:42:56 +0000 (20:42 +0000)
committerAsterisk Autobuilder <asteriskteam@digium.com>
Fri, 19 Dec 2014 20:42:56 +0000 (20:42 +0000)
commit4ec0091de3272997f7c649b555544aa43be7e35e
tree8517d328f058e5577ef9f252c7aa54f122381f9b
parent859f70d714dce1ad728fb1c31c73d0289bbfcfe4
res_pjsip_session: Delay sending BYE if a re-INVITE transaction is in progress.

Given the scenario where a PJSIP channel is in a native RTP bridge with direct
media and the channel is then hung up the code will currently re-INVITE the channel
back to Asterisk and send a BYE at the same time. Many SIP implementations dislike
this greatly.

This change makes it so that if a re-INVITE transaction is in progress the BYE
is queued to occur after the completion of the transaction (be it through normal
means or a timeout).

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

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/13.1@429864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_pjsip.c
include/asterisk/res_pjsip_session.h
res/res_pjsip_session.c
res/res_pjsip_session.exports.in