]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_session: Set stream state on created streams for incoming SDP.
authorJoshua C. Colp <jcolp@sangoma.com>
Mon, 16 Dec 2019 11:23:07 +0000 (07:23 -0400)
committerJoshua C. Colp <jcolp@sangoma.com>
Mon, 16 Dec 2019 11:23:33 +0000 (07:23 -0400)
commit186c4e9b36e66bb9526acb2a845a52dc18c3b844
treea5a45502eaaceae4560932ff6d5b4ce97d436f12
parent9240fcd8bbf06642da9218abdef35148f9cb2784
res_pjsip_session: Set stream state on created streams for incoming SDP.

A previous review, 13174, made a change whereby on an incoming offer SDP
the pending topology was initialized to the configured. This caused a problem
for bundle with WebRTC where bundle could reference a stream that did not
actually exist if the configuration had both audio and video but the
offer SDP only contained audio.

This change undoes that review and instead fixes the original problem it
sought to solve by setting the state of created streams based on the
contents of the offer SDP. This way the stream state is not inactive
until negotiation later completes.

ASTERISK-28659

Change-Id: Ic5ae5a86437d3e686ac5afd91d133cc916198355
res/res_pjsip_session.c