]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Use use-dtx setting from config in request to callee.
authorCorey Burke <corey@switch.co>
Fri, 2 Oct 2015 15:13:05 +0000 (08:13 -0700)
committerCorey Burke <corey@switch.co>
Fri, 2 Oct 2015 15:13:05 +0000 (08:13 -0700)
src/mod/codecs/mod_opus/mod_opus.c

index c30cd66a63ba0068e7ec5bede7acc7fde900500d..022bee771b829e256059801a6008a0cdee0051d0 100644 (file)
@@ -1055,6 +1055,8 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_opus_load)
 
        settings = default_codec_settings;
 
+       settings.usedtx = opus_prefs.use_dtx;
+
        if (opus_prefs.maxaveragebitrate) {
                settings.maxaveragebitrate = opus_prefs.maxaveragebitrate;
        }