From: Travis Cross Date: Tue, 4 Mar 2014 01:51:04 +0000 (+0000) Subject: Improve channel variable name to srtp_allow_idle_gaps X-Git-Tag: v1.2.23~33^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7ef0919e7fbd2b387f470b332d3ee80a5ec589e;p=thirdparty%2Ffreeswitch.git Improve channel variable name to srtp_allow_idle_gaps This was momentarily called force_send_silence_when_idle, but that was non-obvious as you had to set that value to true to be able to not send silence when idle. This name describes the purpose much better. --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 7cbfb7089e..acc99466eb 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1796,7 +1796,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_add_crypto_key(switch_rtp_t *rtp_sess memset(policy, 0, sizeof(*policy)); /* many devices can't handle gaps in SRTP streams */ - if (!((var = switch_channel_get_variable(channel, "force_send_silence_when_idle")) + if (!((var = switch_channel_get_variable(channel, "srtp_allow_idle_gaps")) && switch_true(var)) && (!(var = switch_channel_get_variable(channel, "send_silence_when_idle")) || !(atoi(var)))) {