]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_session: Fix issue where a declined media stream in a re-INVITE would fail...
authorJoshua Colp <jcolp@digium.com>
Fri, 12 Dec 2014 12:31:20 +0000 (12:31 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 12 Dec 2014 12:31:20 +0000 (12:31 +0000)
commit61fe4f10d230d09b5246c97675637810ffed2fa2
tree33db9b17ccb5549169525c725fa01d39322b83b8
parent8237bd357d8fc633e16b09bdeb34f0bc20801ea7
res_pjsip_session: Fix issue where a declined media stream in a re-INVITE would fail SDP negotiation.

In the past the SDP negotiation within res_pjsip_session was made more tolerant of
certain situations. The only case where SDP negotiation will fail is when a major
error occurs during negotiation. Receiving an already declined media stream is
not considered a major error.

When producing the local SDP the logic took this into account so on the initial INVITE
the declined media stream did not cause an SDP negotiation failure. Unfortunately
the logic for handling media streams with a handler did not mirror this logic and
considered an already declined media stream an error and thus failed the SDP
negotiation.

This change makes the logic between both situations match so only under major
errors will the SDP negotiation fail.

ASTERISK-24607 #close
Reported by: Matt Jordan

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@429407 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_session.c