Browse Source

ice: set default candidates for 'lite' mode

when using ice-lite mode, the baresip ICE module is not setting
RTP/RTCP connection line in SDP properly. this should be fixed
by making a call to this function after the local candidates
have been gathered:

	icem_lite_set_default_candidates(m->icem);

the issue was reported by Juha Heinanen, thanks
master^2
Alfred E. Heggestad 7 years ago
parent
commit
204f01ac29
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      modules/ice/ice.c

+ 7
- 0
modules/ice/ice.c View File

@ -227,6 +227,13 @@ static int media_start(struct mnat_sess *sess, struct mnat_media *m)
break;
case ICE_MODE_LITE:
err = icem_lite_set_default_candidates(m->icem);
if (err) {
warning("ice: could not set"
" default candidates (%m)\n", err);
return err;
}
gather_handler(0, 0, NULL, m);
break;
}

Loading…
Cancel
Save