From e7aa743fceb13f068d1ad7d5ef368a279f0d530d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 15 Jul 2014 12:38:58 -0400 Subject: [PATCH] change default a=crypto: tag from zero to one Closes #9 --- daemon/call.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/call.c b/daemon/call.c index 4db0677b6..bc35125b6 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -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 */