<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I use webrtc's AddTransceiver() interface to create a standalone video track, now the stream count is correct and the server's answer sdp is right too.</div><div dir="ltr"><br></div><div>However after B's new track is negotiated, A can see B's new video track. I check the function handle_negotiated_sdp() and found that the session_media->changed is never set so the AST_CONTROL_STREAM_TOPOLOGY_SOURCE_CHANGED cannot be triggered. Is that matter?</div><div><br></div><div>Sincerely</div><div>Xiemin</div><div><br></div><div><br></div><div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Joshua C. Colp <<a href="mailto:jcolp@digium.com">jcolp@digium.com</a>> 于2019年5月9日周四 上午1:42写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, May 8, 2019, at 2:11 PM, Xiemin Chen wrote:<br>
> I add a stream instead of replace stream, I think the problem is caused <br>
> by the a=sendrecv created by WebRTC client, I will get deeper in to <br>
> this.<br>
<br>
If it's not adding a stream but replacing like it seems to be, then I could certainly see things not working as bridge_softmix also does not expect to use a stream for both sending and receiving.<br>
<br>
> Can you point out where's the actual SDP negotiation? I will check it <br>
> too. Thanks for your help.<br>
<br>
Within Asterisk the handle_incoming_sdp function is what does the negotiation and handle_negotiated_sdp_session_media applies the result of that negotiation. The SDP negotiator itself otherwise is within PJSIP itself, specifically pjmedia/src/pjmedia/sdp_neg.c<br>
<br>
-- <br>
Joshua C. Colp<br>
Digium - A Sangoma Company | Senior Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br>
Check us out at: <a href="http://www.digium.com" rel="noreferrer" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" rel="noreferrer" target="_blank">www.asterisk.org</a><br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote></div>