From afa46a43a5a2d1af89df9946bd17d34c906ac23f Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 30 Nov 2015 09:38:32 -0500 Subject: [PATCH] use `reset` flag to also reset and restart ICE agents closes #182 Change-Id: I64e7176eb805157b4d7fd140137db24fe3baa402 --- daemon/call.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index 203e6dbe4..b895d1c5c 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2571,6 +2571,10 @@ int monologue_offer_answer(struct call_monologue *other_ml, GQueue *streams, if (flags && flags->opmode == OP_OFFER && flags->reset) { MEDIA_CLEAR(media, INITIALIZED); MEDIA_CLEAR(other_media, INITIALIZED); + if (media->ice_agent) + ice_restart(media->ice_agent); + if (other_media->ice_agent) + ice_restart(other_media->ice_agent); } /* deduct protocol from stream parameters received */