diff --git a/daemon/call.c b/daemon/call.c index ad89ba1a5..78ee58a19 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2992,8 +2992,8 @@ static void __media_init_from_flags(struct call_media *other_media, struct call_ if (media && (!media->desired_family || !MEDIA_ISSET(media, ICE))) { if (!media->desired_family) media->desired_family = other_media->desired_family; - if (sp->desired_family) - media->desired_family = sp->desired_family; + if (flags->address_family) + media->desired_family = flags->address_family; } if (flags->opmode == OP_OFFER) { diff --git a/daemon/sdp.c b/daemon/sdp.c index 22346c940..44c9a32ac 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -1884,7 +1884,6 @@ int sdp_streams(const sdp_sessions_q *sessions, sdp_streams_q *streams, sdp_ng_f sp->type = media->media_type_str; sp->type_id = media->media_type_id; memcpy(sp->direction, flags->direction, sizeof(sp->direction)); - sp->desired_family = flags->address_family; bf_set_clear(&sp->sp_flags, SP_FLAG_ASYMMETRIC, flags->asymmetric); bf_set_clear(&sp->sp_flags, SP_FLAG_UNIDIRECTIONAL, flags->unidirectional); bf_set_clear(&sp->sp_flags, SP_FLAG_STRICT_SOURCE, flags->strict_source); diff --git a/include/call.h b/include/call.h index 683110cb6..86193c14d 100644 --- a/include/call.h +++ b/include/call.h @@ -365,7 +365,6 @@ struct stream_params { sdp_attr_q generic_attributes; /* just some other attributes */ sdp_attr_q all_attributes; /* all attributes */ str direction[2]; - sockfamily_t *desired_family; struct dtls_fingerprint fingerprint; atomic64 sp_flags; struct codec_store codecs;