<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class="">Our server has had someone send us the following SDP:</div><div class=""><br class=""></div><div class=""><div class=""><font face="Courier New" size="1" class="">v=0</font></div><div class=""><font face="Courier New" size="1" class="">o=- 1598394304 1598394304 IN IP4 1.2.3.4</font></div><div class=""><font face="Courier New" size="1" class="">s=-</font></div><div class=""><font face="Courier New" size="1" class="">c=IN IP4 1.2.3.4</font></div><div class=""><font face="Courier New" size="1" class="">t=0 0</font></div><div class=""><font face="Courier New" size="1" class="">m=audio 14198 RTP/AVP 8 0 96 9 101</font></div><div class=""><font face="Courier New" size="1" class="">a=rtpmap:8 PCMA/8000</font></div><div class=""><font face="Courier New" size="1" class="">a=rtpmap:0 PCMU/8000</font></div><div class=""><font face="Courier New" size="1" class=""><b class="">a=rtpmap:96 G7221/16000</b></font></div><div class=""><font face="Courier New" size="1" class=""><b class="">a=fmtp:96 bitrate=24000</b></font></div><div class=""><font face="Courier New" size="1" class="">a=rtpmap:9 G722/8000</font></div><div class=""><font face="Courier New" size="1" class="">a=rtpmap:101 telephone-event/8000</font></div><div class=""><font face="Courier New" size="1" class="">a=fmtp:101 0-15</font></div><div class=""><font face="Courier New" size="1" class="">a=sendrecv</font></div><div class=""><font face="Courier New" size="1" class="">a=silenceSupp:off - - - -</font></div></div><div class=""><br class=""></div><div class="">We have the following configuration in our <font face="Courier New" size="1" class="">vars.xml</font> file:</div><div class=""><br class=""></div><div class=""><div class=""><font face="Courier New" size="1" class=""> <X-PRE-PROCESS cmd="set" data="global_codec_prefs=G7221@16000h,G7221@32000h,OPUS,G722,PCMU,PCMA”/></font></div></div><div class=""><br class=""></div><div class="">However the debug log shows the following output:</div><div class=""><br class=""></div><div class=""><div class=""><font face="Courier New" size="1" class="">e95e4aaa-e721-11ea-ba06-4735eb6f008b 2020-08-26 08:25:42.327098 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G7221:107:16000:20:32000:1]</font></div><div class=""><font face="Courier New" size="1" class="">e95e4aaa-e721-11ea-ba06-4735eb6f008b 2020-08-26 08:25:42.327098 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G7221:115:32000:20:48000:1]</font></div></div><div class=""><font face="Courier New" size="1" class="">…snip…</font></div><div class=""><div class=""><b class=""><font face="Courier New" size="1" class="">e95e4aaa-e721-11ea-ba06-4735eb6f008b 2020-08-26 08:25:42.327098 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [G7221:96:16000:20:24000:1]/[G7221:107:16000:20:32000:1]</font></b></div><div class=""><font face="Courier New" size="1" class="">e95e4aaa-e721-11ea-ba06-4735eb6f008b 2020-08-26 08:25:42.327098 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [G7221:96:16000:20:24000:1]/[G7221:115:32000:20:48000:1]</font></div><div class=""><font face="Courier New" size="1" class="">e95e4aaa-e721-11ea-ba06-4735eb6f008b 2020-08-26 08:25:42.327098 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [G7221:96:16000:20:24000:1]/[opus:116:48000:20:0:1]</font></div><div class=""><font face="Courier New" size="1" class="">e95e4aaa-e721-11ea-ba06-4735eb6f008b 2020-08-26 08:25:42.327098 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [G7221:96:16000:20:24000:1]/[G722:9:8000:20:64000:1]</font></div><div class=""><font face="Courier New" size="1" class="">e95e4aaa-e721-11ea-ba06-4735eb6f008b 2020-08-26 08:25:42.327098 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [G7221:96:16000:20:24000:1]/[PCMU:0:8000:20:64000:1]</font></div><div class=""><font face="Courier New" size="1" class="">e95e4aaa-e721-11ea-ba06-4735eb6f008b 2020-08-26 08:25:42.327098 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [G7221:96:16000:20:24000:1]/[PCMA:8:8000:20:64000:1]</font></div></div><div class=""><font face="Courier New" size="1" class="">…snip…</font></div><div class=""><font face="Courier New" size="1" class="">e95e4aaa-e721-11ea-ba06-4735eb6f008b 2020-08-26 08:25:42.327098 [DEBUG] switch_core_media.c:3781 Set Codec <a href="mailto:sofia/mrf/nobody@4.5.6.7" class="">sofia/mrf/nobody@4.5.6.7</a>:5060 G722/8000 20 ms 160 samples 64000 bits 1 channels</font></div><div class=""><br class=""></div><div class="">It seems we’re trying to match G722.1 16-24k (from the sender) with G722.1 16-32k (which we have configured). I cannot however find a way to configure G722.1 in FreeSWITCH to accept that bitrate range. I did try setting “G7221@24000h” in the vars.xml file, however this didn’t seem to have any effect It’s entirely possible I’ve also misunderstood the issue here, so any direction would be very much appreciated.</div><div class=""><br class=""></div><div class="">Thanks in advance!</div><div class=""><br class=""></div><div class="">Andrew</div></div></body></html>