<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<div>Setting FreeSWITCH to 'greedy' will cause the codecs you specified in FreeSWITCH to take priority which in your case is G722 as neither of your endpoints support OPUS, you could try setting '<span style="color: rgb(33, 33, 33); font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;">inbound-codec-negotiation</span>'
to '<span>generous</span>'.</div>
<div><br>
</div>
Even if configured correctly there will still be instances where transcoding may be required in particular if you allow call transfer, for example transferring a G722 call to an endpoint that only supports G711 will require transcoding.</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Ulrich Backes <backes@solthor.de><br>
<b>Sent:</b> 07 November 2018 12:55:57<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org<br>
<b>Subject:</b> [Freeswitch-users] How to avoid transcoding?</font>
<div> </div>
</div>
<div>
<p>Hi guys,<br>
<br>
I've investigated many hours and cannot solve this problem:<br>
A and B should use g711u. </p>
<p><br>
A: <img class="x_aspect-ratio" alt="" style="max-width:100%" data-outlook-trace="F:1|T:1" src="cid:d242e27033084e59a8a877a137eb44ba@Open-Xchange"></p>
<p><br>
B: <img class="x_aspect-ratio" alt="" style="max-width:100%" data-outlook-trace="F:1|T:1" src="cid:cd462457d2134dd4950ddf12e9e7ecf8@Open-Xchange"><br>
<br>
But FreeSwitch decides to transcode:<br>
</p>
<p> <img class="x_aspect-ratio" alt="" style="max-width:100%" data-outlook-trace="F:1|T:1" src="cid:61e85c8ab9904d83b9e3553e5745e36d@Open-Xchange"><br>
The settings:<br>
vars.xml<br>
<X-PRE-PROCESS cmd="set" data="media_mix_inbound_outbound_codecs=false"/> <br>
<X-PRE-PROCESS cmd="set" data="global_codec_prefs=OPUS,G722,PCMU,PCMA,VP8"/> <br>
<br>
internal.xml<br>
<param name="inbound-codec-negotiation" value="greedy"/><br>
<param name="inbound-late-negotiation" value="true"/> <br>
<param name="disable-transcoding" value="true"/> <br>
<br>
<param name="inbound-proxy-media" value="false"/> <br>
<param name="inbound-bypass-media" value="false"/><br>
<param name="inbound-codec-prefs" value="$${global_codec_prefs}"/><br>
<param name="outbound-codec-prefs" value="$${global_codec_prefs}"/><br>
<br>
default.xml (Using the demo-Dialplan)<br>
<extension name="Local_Extension"><br>
...<br>
<br>
Using FS v 1.8</p>
<p>Thanks.<br>
Uli<br>
<br>
</p>
</div>
</body>
</html>