]> 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@digium.com>
Mon, 16 Dec 2019 11:24:03 +0000 (05:24 -0600)
commitef0bca0a05f48a986a71b535e2631dc1240a3c7f
tree0c0b177addeee37c0ca88b1c0c06524677782597
parent0aa75cd2cb14a32373282d710d519e63b1cf149d
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