|
|
@ -2085,6 +2085,9 @@ int sdp_replace(struct sdp_chopper *chop, GQueue *sessions, struct call_monologu
|
|
|
|
|
|
|
|
|
|
|
|
copy_up_to_end_of(chop, &sdp_media->s);
|
|
|
|
copy_up_to_end_of(chop, &sdp_media->s);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!sdp_media->port_num || !ps->selected_sfd)
|
|
|
|
|
|
|
|
goto next;
|
|
|
|
|
|
|
|
|
|
|
|
if (call_media->media_id.s) {
|
|
|
|
if (call_media->media_id.s) {
|
|
|
|
chopper_append_c(chop, "a=mid:");
|
|
|
|
chopper_append_c(chop, "a=mid:");
|
|
|
|
chopper_append_str(chop, &call_media->media_id);
|
|
|
|
chopper_append_str(chop, &call_media->media_id);
|
|
|
@ -2102,9 +2105,6 @@ int sdp_replace(struct sdp_chopper *chop, GQueue *sessions, struct call_monologu
|
|
|
|
assert(j->data == ps_rtcp);
|
|
|
|
assert(j->data == ps_rtcp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!sdp_media->port_num || !ps->selected_sfd)
|
|
|
|
|
|
|
|
goto next;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!flags->original_sendrecv) {
|
|
|
|
if (!flags->original_sendrecv) {
|
|
|
|
if (MEDIA_ARESET2(call_media, SEND, RECV))
|
|
|
|
if (MEDIA_ARESET2(call_media, SEND, RECV))
|
|
|
|
chopper_append_c(chop, "a=sendrecv\r\n");
|
|
|
|
chopper_append_c(chop, "a=sendrecv\r\n");
|
|
|
|