use `reset` flag to also reset and restart ICE agents

closes #182

Change-Id: I64e7176eb805157b4d7fd140137db24fe3baa402
pull/194/head
Richard Fuchs 10 years ago
parent cae0b4bf04
commit afa46a43a5

@ -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 */

Loading…
Cancel
Save