[mod_opus] add cfg setting to overwrite the fmtp stereo param coming from remote. Eg: incoming SDP has stereo=1 but we want a mono call so we answer with stereo=0.

* [mod_opus] add cfg setting to overwrite the fmtp stereo param coming from remote. Eg: incoming SDP has stereo=1 but we want a mono call so we answer with stereo=0.
sprop-stereo will be set to 0 too.

* [core] opus: use switch_core_max_audio_channels() with remote fmtp stereo=1 to allow disabling of stereo.
This commit is contained in:
Dragos Oancea
2021-05-14 18:36:30 +03:00
committed by GitHub
parent 53a52e1571
commit a562db760c
4 changed files with 21 additions and 4 deletions

View File

@@ -6,6 +6,7 @@
<param name="complexity" value="10"/>
<param name="use-jb-lookahead" value="true"/>
<param name="keep-fec-enabled" value="true"/>
<param name="adjust-bitrate" value="true"/>
<param name="adjust-bitrate" value="true"/>
<param name="mono" value="0"/>
</settings>
</configuration>

View File

@@ -28,6 +28,8 @@
<!-- Max capture rate, 8000, 12000, 16000, 24000 and 48000 are valid options -->
<!--<param name="sprop-maxcapturerate" value="0"/>-->
<!-- Enable automatic bitrate variation during the call based on RTCP feedback -->
<!--<param name="adjust-bitrate" value="1"/>-->
<!--<param name="adjust-bitrate" value="1"/>-->
<!-- will enforce mono even if the remote party wants stereo. must be used in conjunction with param "max-audio-channels" set to 1 in switch.conf.xml. -->
<param name="mono" value="0"/>
</settings>
</configuration>