FusionPBX/Freeswitch won't transcode codecs

Status
Not open for further replies.

iota

New Member
May 29, 2020
24
9
3
USA
Right now a majority of my users are working from home with their own wonky internet and wifi setups. Using uncompressed codecs can be challenging on their setups. So I want to get OPUS working from their home to my FusionPBX server... and transcode to PCMU for Twilio/Flowroute/Skeyetel gateways.

They have Grandstream GRP2614 phones with only OPUS codec enabled (when I had OPUS and PCMU, freeswitch ALWAYS chose PCMU, no matter my settings).

Internal calls of Grandstream to Grandstream work just fine (and sngrep captures verify its running OPUS). But Grandstream OPUS to FusionPBX to PCMU for Twilio/Flowroute/Skyetel fails with 488 Not Acceptable here (codec mismatch, codec format invalid, etc.).

I use sngrep to capture the packets and found freeswitch is only offering OPUS codec to Twilio/Flowroute/Skyetel... when they only support PCMU (which makes sense).

Here are my settings which, per documentation, SHOULD HANDLE THIS ISSUE:

SIP profile internal settings:
inbound-bypass-media = false True
disable-transcoding = false True
inbound-zrtp-passthru = false True
inbound-late-negotiation = false True
inbound-bypass-media = false True
inherit-codec = false True
inbound-codec-prefs = OPUS True
outbound-codec-prefs = PCMU True
# As per this post https://www.pbxforums.com/threads/fusionpbx-and-opus-question.4557/post-17184
session-timeout = 0 True
enable-timer = false True

I also tried
inbound-late-negotiation = true True

Gateway settings
Codec Preferences PCMU

Outbound route (just what's applicable... there is more)
set inherit_codec=false
export media_mix_inbound_outbound_codecs=true
export absolute_codec_string='PCMU'
action bridge sofia/gateway/twilio/+1$1

At this point... I don't get it. Why is freeswitch stuck with forwarding the A leg... or preferring the B leg's PCMU if the grandstream has the option?
 
Last edited:
Status
Not open for further replies.