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);