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.
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)))) {