]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res/res_pjsip_sdp_rtp: Check joint caps when looking to decline outgoing media
authorMatthew Jordan <mjordan@digium.com>
Sun, 19 Oct 2014 00:49:10 +0000 (00:49 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sun, 19 Oct 2014 00:49:10 +0000 (00:49 +0000)
commita58f9137176b39e76d1745fe05a670538d4fef42
treea1e7de5fd282b68450573598ade40ec320cabc2b
parentf4314beff021d4f4ed0d430a36dd108f7f1150d9
res/res_pjsip_sdp_rtp: Check joint caps when looking to decline outgoing media

When constructing an outgoing media stream for an SDP offer/answer, the current
code checks the override preferences (set by the PJSIP_MEDIA_OFFER function) as
well as what is configured on the endpoint to determine if a codec is available
for the media stream. Unfortunately, this isn't good enough: we must also look
at the negotiated (joint) format capabilities. Otherwise, we'll construct a
media stream offer/answer with no codecs.

Note that this isn't an issue in 13, which already looks at the joint
capabilities thanks to the media re-work done there.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@425921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_sdp_rtp.c