summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2014-05-01 16:38:05 +0200
committerAlfred E. Heggestad <aeh@db.org>2014-05-01 16:38:05 +0200
commit204f01ac29b9424211a014a68dee383f67225e8b (patch)
tree261bdebfb08645738aabdd4fd476873271625c9b
parent309ba2242ce410c72ef7b9e22e33c8cf8aaab6c3 (diff)
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
-rw-r--r--modules/ice/ice.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/ice/ice.c b/modules/ice/ice.c
index e8de4d7..ac2c4d9 100644
--- a/modules/ice/ice.c
+++ b/modules/ice/ice.c
@@ -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;
}