change default a=crypto: tag from zero to one

Closes #9
pull/11/head
Richard Fuchs 12 years ago
parent e1cfc19c18
commit e7aa743fce

@ -1732,8 +1732,8 @@ static void __generate_crypto(const struct sdp_ng_flags *flags, struct call_medi
}
}
/* for answer case, otherwise defaults to zero */
this->sdes_out.tag = this->sdes_in.tag;
/* for answer case, otherwise we default to one */
this->sdes_out.tag = this->sdes_in.params.crypto_suite ? this->sdes_in.tag : 1;
if (other->sdes_in.params.crypto_suite) {
/* SRTP <> SRTP case, copy from other stream */

Loading…
Cancel
Save