<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>to understand how codec negotiation work check 
      <a class="moz-txt-link-freetext" href="https://freeswitch.org/confluence/display/FREESWITCH/Codec+Negotiation">https://freeswitch.org/confluence/display/FREESWITCH/Codec+Negotiation</a>
      <br>
    </p>
    <p>Also, you may want to enable inherit_codec parameter this way the
      codec negotiated in bleg is first match against codecs from aleg.
      <br>
    </p>
    <p><br>
    </p>
    <p>Also, another simple way to avoid transcoding is set only one
      codec in the configuration, set:</p>
    <p><X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMU"/> <br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 07/11/2018 13:55, Ulrich Backes
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:380673553.633982.1541595357082@webmail.strato.de">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <meta charset="UTF-8">
      <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 src="cid:part1.E3195C2F.1026F7CF@wirelessmundi.com"
          style="max-width: 100%;" class="aspect-ratio" alt=""
          from_clipboard="true"></p>
      <p><br>
        B:  <img src="cid:part2.8E467D16.0F9F7802@wirelessmundi.com"
          style="max-width: 100%;" class="aspect-ratio" alt=""
          from_clipboard="true"><br>
        <br>
        But FreeSwitch decides to transcode:<br>
      </p>
      <p> <img src="cid:part3.F832E2A5.A9CE4AB1@wirelessmundi.com"
          style="max-width: 100%;" class="aspect-ratio" alt=""
          from_clipboard="true"><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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_________________________________________________________________________
Professional FreeSWITCH Services
<a class="moz-txt-link-abbreviated" href="mailto:sales@freeswitch.com">sales@freeswitch.com</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.com">https://freeswitch.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="https://freeswitch.com/oss">https://freeswitch.com/oss</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.org/confluence">https://freeswitch.org/confluence</a>
<a class="moz-txt-link-freetext" href="https://cluecon.com">https://cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.com">https://freeswitch.com</a></pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Saludos / Regards / Cumprimentos
António Silva</pre>
  </body>
</html>