From d63323977fa611b141441f12af9a94ec19b5f829 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 18 Jul 2012 12:19:47 -0500 Subject: [PATCH] turn on send_silence_when_idle whenever we engage srtp --- src/switch_rtp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 727c5d5196..16b5d6d38c 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1688,6 +1688,8 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_add_crypto_key(switch_rtp_t *rtp_sess memset(policy, 0, sizeof(*policy)); + switch_channel_set_variable(channel, "send_silence_when_idle", "true"); + switch (crypto_key->type) { case AES_CM_128_HMAC_SHA1_80: crypto_policy_set_aes_cm_128_hmac_sha1_80(&policy->rtp);