Allow chan_sip to decline unwanted media streams
authorKinsey Moore <kmoore@digium.com>
Fri, 15 Jun 2012 17:13:20 +0000 (17:13 +0000)
committerKinsey Moore <kmoore@digium.com>
Fri, 15 Jun 2012 17:13:20 +0000 (17:13 +0000)
commitbf6ef69702a1b9fbe78bee7cd0fe4d44de92fbb1
tree5ecb70613cb93f7b9f1384074053136868632283
parent88c9c6bef8928c5d857172f1b8206c08699d0f75
Allow chan_sip to decline unwanted media streams

This change replaces the static array of four representable media
streams with an AST_LIST so that chan_sip can keep track of offered
media streams.  This allows chan_sip to deal with offers containing
multiple same-type streams and many other situations without rejecting
the SDP offer in its entirety, yet still generating a valid response.
This also covers cases where Asterisk can not comprehend the offer if
it is in the correct format.

Previously, chan_sip would reject SDP offers or entirely ignore
individual stream offers in an effort to be more compatible which
would often result in invalid SDP responses.

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
channels/sip/include/sip.h