mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-06 15:39:06 +00:00
FS-7462: fix FMTP in the INVITE - make it use values from opus.conf.xml
This commit is contained in:
parent
022fddbe6a
commit
8d98bc27ef
@ -490,8 +490,14 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_opus_load)
|
|||||||
codec_interface->parse_fmtp = switch_opus_fmtp_parse;
|
codec_interface->parse_fmtp = switch_opus_fmtp_parse;
|
||||||
|
|
||||||
settings = default_codec_settings;
|
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++) {
|
for (x = 0; x < 3; x++) {
|
||||||
|
|
||||||
settings.ptime = mss / 1000;
|
settings.ptime = mss / 1000;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user