]> 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:23:50 +0000 (05:23 -0600)
commita603d7d324f7a905cb42dd45f608e4708488e057
tree4dc7874eef98c7283adc0a7627eb4ce3e27af384
parent91cdb9537e1b860905107258a7bca1318f53d8ed
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