From 8d98bc27ef67f44579ea593e36a48a53816844f3 Mon Sep 17 00:00:00 2001 From: doancea Date: Wed, 22 Apr 2015 16:04:07 +0200 Subject: [PATCH] FS-7462: fix FMTP in the INVITE - make it use values from opus.conf.xml --- src/mod/codecs/mod_opus/mod_opus.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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;