Merge branch 'etamme-master'

pull/69/head
Richard Fuchs 11 years ago
commit b8ad03ea2a

@ -1916,10 +1916,17 @@ static void __generate_crypto(const struct sdp_ng_flags *flags, struct call_medi
if (!this->protocol || !this->protocol->srtp || MEDIA_ISSET(this, PASSTHRU)) { if (!this->protocol || !this->protocol->srtp || MEDIA_ISSET(this, PASSTHRU)) {
cp->crypto_suite = NULL; cp->crypto_suite = NULL;
/* clear crypto for the this leg b/c we are in passthrough mode */
MEDIA_CLEAR(this, DTLS); MEDIA_CLEAR(this, DTLS);
MEDIA_CLEAR(this, SDES); MEDIA_CLEAR(this, SDES);
MEDIA_CLEAR(this, SETUP_PASSIVE); MEDIA_CLEAR(this, SETUP_PASSIVE);
MEDIA_CLEAR(this, SETUP_ACTIVE); MEDIA_CLEAR(this, SETUP_ACTIVE);
/* clear crypto for the other leg as well b/c passthrough only works if it is done for both legs */
MEDIA_CLEAR(other, DTLS);
MEDIA_CLEAR(other, SDES);
MEDIA_CLEAR(other, SETUP_PASSIVE);
MEDIA_CLEAR(other, SETUP_ACTIVE);
return; return;
} }

Loading…
Cancel
Save