SOLVED Opus Codec only for internal calls & PCMA for gateway calls

Status
Not open for further replies.
Jul 15, 2021
102
9
18
33
I have few internal extensions and I have an external gateway connecting to PSTN, the external gateway supports only PCMA.

In the variables section, I have this
global_codec_prefs - PCMA, Opus
media_mix_inbound_outbound_codecs = false
outbound_codec_prefs = PCMA,Opus

My intention is to have Opus for calls between extensions and PCMA for outbound via external gateway - without audio transcoding.

So any external call will use PCMA without transcoding.

However, calls between extension go through fine without transcoding and use Opus.

External calls gets established with the gateway using PCMA and then it is transcoded for the extension using Opus.

I want to prevent this transcoding - but I am not sure what is incorrect and why PCMA is not chosen for the internal extension


Edit: How to get this done

Set Opus and PCMA in global_codec_prefs - in this order of preference
outbound_codec_prefs to PCMA

Make sure late negotiation is enabled on the profile, transcoding is disabled.
On the client make sure you enable Opus and PCMA in that order of preference
 
Last edited:
Status
Not open for further replies.