From: doancea Date: Wed, 22 Apr 2015 14:04:07 +0000 (+0200) Subject: FS-7462: fix FMTP in the INVITE - make it use values from opus.conf.xml X-Git-Tag: v1.6.2~595 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d98bc27ef67f44579ea593e36a48a53816844f3;p=thirdparty%2Ffreeswitch.git FS-7462: fix FMTP in the INVITE - make it use values from opus.conf.xml --- diff --git a/src/mod/codecs/mod_opus/mod_opus.c b/src/mod/codecs/mod_opus/mod_opus.c index 21dc569c6b..8a950aab22 100644 --- a/src/mod/codecs/mod_opus/mod_opus.c +++ b/src/mod/codecs/mod_opus/mod_opus.c @@ -490,8 +490,14 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_opus_load) codec_interface->parse_fmtp = switch_opus_fmtp_parse; settings = default_codec_settings; - - + + if (opus_prefs.maxaveragebitrate){ + settings.maxaveragebitrate = opus_prefs.maxaveragebitrate; + } + if (opus_prefs.maxplaybackrate) { + settings.maxplaybackrate = opus_prefs.maxplaybackrate; + } + for (x = 0; x < 3; x++) { settings.ptime = mss / 1000;