Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace transport protocol only if protocol was specified in flags #432

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Replace transport protocol only if protocol was specified in flags
  • Loading branch information
arkadiam committed Dec 15, 2017
commit 678be089ceb9ae2949e7825129b99a320ab89b05
14 changes: 8 additions & 6 deletions daemon/sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1952,12 +1952,14 @@ int sdp_replace(struct sdp_chopper *chop, GQueue *sessions, struct call_monologu
ps = j->data;

if (!flags->ice_force_relay) {
if (replace_media_port(chop, sdp_media, ps))
goto error;
if (replace_consecutive_port_count(chop, sdp_media, ps, j))
goto error;
if (replace_transport_protocol(chop, sdp_media, call_media))
goto error;
if (replace_media_port(chop, sdp_media, ps))
goto error;
if (replace_consecutive_port_count(chop, sdp_media, ps, j))
goto error;
if (flags->transport_protocol) {
if (replace_transport_protocol(chop, sdp_media, call_media))
goto error;
}

if (sdp_media->connection.parsed) {
if (replace_network_address(chop, &sdp_media->connection.address, ps,
Expand Down