[Freeswitch-users] Specifying G722.1 bitrate

Andrew White andrew at uconnected.com.au
Tue Aug 25 22:41:39 UTC 2020


Hi all,

Our server has had someone send us the following SDP:

v=0
o=- 1598394304 1598394304 IN IP4 1.2.3.4
s=-
c=IN IP4 1.2.3.4
t=0 0
m=audio 14198 RTP/AVP 8 0 96 9 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:96 G7221/16000
a=fmtp:96 bitrate=24000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=silenceSupp:off - - - -

We have the following configuration in our vars.xml file:

  <X-PRE-PROCESS cmd="set" data="global_codec_prefs=G7221 at 16000h,G7221 at 32000h,OPUS,G722,PCMU,PCMA”/>

However the debug log shows the following output:

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]
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]
…snip…
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]
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]
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]
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]
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]
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]
…snip…
e95e4aaa-e721-11ea-ba06-4735eb6f008b 2020-08-26 08:25:42.327098 [DEBUG] switch_core_media.c:3781 Set Codec sofia/mrf/nobody at 4.5.6.7 <mailto:sofia/mrf/nobody at 4.5.6.7>:5060 G722/8000 20 ms 160 samples 64000 bits 1 channels

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 at 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.

Thanks in advance!

Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200826/46072ceb/attachment.html>


More information about the FreeSWITCH-users mailing list