Browse Source

MT#63317 share ICE context when bundling

Change-Id: Iee91f340b46241b30a9a0e6e5eefb268f380576f
rfuchs/2010
Richard Fuchs 3 months ago
parent
commit
37cbac5fa7
2 changed files with 10 additions and 6 deletions
  1. +3
    -0
      daemon/call.c
  2. +7
    -6
      daemon/sdp.c

+ 3
- 0
daemon/call.c View File

@ -3509,6 +3509,9 @@ static void monologue_bundle_set_fds(struct call_monologue *ml) {
if (bundle == media)
continue;
if (media->ice_agent)
ice_shutdown(&media->ice_agent);
__auto_type msl = media->streams.head;
__auto_type bsl = bundle->streams.head;


+ 7
- 6
daemon/sdp.c View File

@ -2962,14 +2962,16 @@ static void print_sdp_media_section(GString *s, struct call_media *media,
media->type_id);
}
if (MEDIA_ISSET(media, ICE) && media->ice_agent) {
append_attr_to_gstring(s, "ice-ufrag", &media->ice_agent->ufrag[1], flags,
__auto_type ice_agent = media->bundle ? media->bundle->ice_agent : media->ice_agent;
if (MEDIA_ISSET(media, ICE) && ice_agent) {
append_attr_to_gstring(s, "ice-ufrag", &ice_agent->ufrag[1], flags,
media->type_id);
append_attr_to_gstring(s, "ice-pwd", &media->ice_agent->pwd[1], flags,
append_attr_to_gstring(s, "ice-pwd", &ice_agent->pwd[1], flags,
media->type_id);
}
if (MEDIA_ISSET(media, TRICKLE_ICE) && media->ice_agent) {
if (MEDIA_ISSET(media, TRICKLE_ICE) && ice_agent) {
append_attr_to_gstring(s, "ice-options", &STR_CONST("trickle"), flags,
media->type_id);
}
@ -2977,9 +2979,8 @@ static void print_sdp_media_section(GString *s, struct call_media *media,
insert_candidates(s, rtp_ps, ps_rtcp, flags, NULL);
}
if ((MEDIA_ISSET(media, TRICKLE_ICE) && media->ice_agent)) {
if ((MEDIA_ISSET(media, TRICKLE_ICE) && ice_agent))
append_null_attr_to_gstring(s, "end-of-candidates", flags, media->type_id);
}
return;
}


Loading…
Cancel
Save