Forcing Opus codec on inbound calls

Status
Not open for further replies.

slayerphil

New Member
Apr 7, 2020
10
0
1
44
Hello

Can anyone point me in the right direction as to how I would force the Opus codec for inbound calls to an extension or even all extensions? I've got it working fine on outbound calls, but inbound is still using G711, I'm assuming there will need to be transcoding, but that's fine.

Thanks
Phil
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,420
378
83
Obviously the proxy sending you the inbound call will need to support/offer the Opus codec. The setting that controls what you will accept is inbound-codec-prefs on your external SIP profile.

Also look at inbound-codec-negotiation, by default it is set to "generous", but setting it to "greedy" will enforce your preferences.

You can also set the codec_string in your dial plan to specify a different codec set for certain circumstances. Here is a screenshot from one of my setups, not specifically inbound:
Screenshot from 2020-06-23 21-59-51.png

This link may be helpful:
https://freeswitch.org/confluence/display/FREESWITCH/Codec+Negotiation
 
  • Like
Reactions: slayerphil

slayerphil

New Member
Apr 7, 2020
10
0
1
44
Obviously the proxy sending you the inbound call will need to support/offer the Opus codec. The setting that controls what you will accept is inbound-codec-prefs on your external SIP profile.

Also look at inbound-codec-negotiation, by default it is set to "generous", but setting it to "greedy" will enforce your preferences.

You can also set the codec_string in your dial plan to specify a different codec set for certain circumstances. Here is a screenshot from one of my setups, not specifically inbound:
View attachment 1584

This link may be helpful:
https://freeswitch.org/confluence/display/FREESWITCH/Codec+Negotiation

Really appreciate your help, I'll take a look.
 
Status
Not open for further replies.