]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Improve channel variable name to srtp_allow_idle_gaps
authorTravis Cross <tc@traviscross.com>
Tue, 4 Mar 2014 01:51:04 +0000 (01:51 +0000)
committerTravis Cross <tc@traviscross.com>
Tue, 4 Mar 2014 02:09:33 +0000 (02:09 +0000)
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.

src/switch_rtp.c

index 7cbfb7089e3384a9de5660c10c0c2cc83a621ee0..acc99466eb01f8ae2727ab9a73948521779233b3 100644 (file)
@@ -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)))) {