TT#96200 fix SRTP multi-protocol re-offer

Do not perform protocol negotiations in an offer

closes #1086

Change-Id: I5fb7638aa71e80c08abcda2d8c341ae72725bace
pull/1093/head
Richard Fuchs 6 years ago
parent 565a4cf901
commit 92ea2685ae

@ -1348,7 +1348,9 @@ static void __generate_crypto(const struct sdp_ng_flags *flags, struct call_medi
MEDIA_CLEAR(this, SETUP_PASSIVE);
}
if (!MEDIA_ARESET2(this, DTLS, SDES) && flags->opmode == OP_OFFER) {
if (flags->opmode == OP_OFFER) {
// if neither is enabled yet...
if (!MEDIA_ISSET2(this, DTLS, SDES)) {
/* we offer both DTLS and SDES by default */
/* unless this is overridden by flags */
if (!flags->dtls_off)
@ -1358,6 +1360,7 @@ static void __generate_crypto(const struct sdp_ng_flags *flags, struct call_medi
else
goto skip_sdes;
}
}
else {
/* if both SDES and DTLS are supported, we may use the flags to select one
* over the other */

Loading…
Cancel
Save