]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Allow for media to arrive from an alternate source when responding to a reinvite...
authorMark Michelson <mmichelson@digium.com>
Thu, 28 May 2009 15:27:49 +0000 (15:27 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 28 May 2009 15:27:49 +0000 (15:27 +0000)
commit590408dca3315ec1b647417eafb5c3a0f86687ce
tree4b57fad06fdfb3c8ff5f6bb11e8f82455c108a20
parent26cec158af677509882897d817cf42cf21cffe10
Allow for media to arrive from an alternate source when responding to a reinvite with 491.

When we receive a SIP reinvite, it is possible that we may not be able to process the
reinvite immediately since we have also sent a reinvite out ourselves. The problem is
that whoever sent us the reinvite may have also sent a reinvite out to another party,
and that reinvite may have succeeded.

As a result, even though we are not going to accept the reinvite we just received, it
is important for us to not have problems if we suddenly start receiving RTP from a new
source. The fix for this is to grab the media source information from the SDP of the
reinvite that we receive. This information is passed to the RTP layer so that it will
know about the alternate source for media.

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@197588 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
include/asterisk/rtp.h
main/rtp.c