From 5d490223f60c89fac8f3ad2d37f156c501198541 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 7 Apr 2014 10:04:14 -0400 Subject: [PATCH] set media SDES flag when appropriate --- daemon/call.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index 397d521c6..6900a2225 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -1765,8 +1765,11 @@ int monologue_offer_answer(struct call_monologue *monologue, GQueue *streams, /* copy parameters advertised by the sender of this message */ bf_copy_same(&other_media->media_flags, &sp->sp_flags, SP_FLAG_RTCP_MUX | SP_FLAG_ASYMMETRIC); + crypto_params_copy(&other_media->sdes_in.params, &sp->crypto); other_media->sdes_in.tag = sp->sdes_tag; + if (other_media->sdes_in.params.crypto_suite) + MEDIA_SET(other_media, SDES); bf_copy_same(&media->media_flags, &sp->sp_flags, SP_FLAG_SEND | SP_FLAG_RECV);