[Freeswitch-users] How to avoid transcoding?

António Silva asilva at wirelessmundi.com
Thu Nov 8 08:42:13 UTC 2018


Hi,

to understand how codec negotiation work check 
https://freeswitch.org/confluence/display/FREESWITCH/Codec+Negotiation

Also, you may want to enable inherit_codec parameter this way the codec 
negotiated in bleg is first match against codecs from aleg.


Also, another simple way to avoid transcoding is set only one codec in 
the configuration, set:

<X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMU"/>


On 07/11/2018 13:55, Ulrich Backes wrote:
>
> Hi guys,
>
> I've investigated many hours and cannot solve this problem:
> A and B should use g711u.
>
>
> A:
>
>
> B:
>
> But FreeSwitch decides to transcode:
>
>
> The settings:
> vars.xml
> <X-PRE-PROCESS cmd="set" data="media_mix_inbound_outbound_codecs=false"/>
> <X-PRE-PROCESS cmd="set" 
> data="global_codec_prefs=OPUS,G722,PCMU,PCMA,VP8"/>
>
> internal.xml
> <param name="inbound-codec-negotiation" value="greedy"/>
> <param name="inbound-late-negotiation" value="true"/>
> <param name="disable-transcoding" value="true"/>
>
> <param name="inbound-proxy-media" value="false"/>
> <param name="inbound-bypass-media" value="false"/>
> <param name="inbound-codec-prefs" value="$${global_codec_prefs}"/>
> <param name="outbound-codec-prefs" value="$${global_codec_prefs}"/>
>
> default.xml (Using the demo-Dialplan)
> <extension name="Local_Extension">
> ...
>
> Using FS v 1.8
>
> Thanks.
> Uli
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com

-- 
Saludos / Regards / Cumprimentos
António Silva

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20181108/0aaed6a7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 3727 bytes
Desc: not available
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20181108/0aaed6a7/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 6279 bytes
Desc: not available
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20181108/0aaed6a7/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 104271 bytes
Desc: not available
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20181108/0aaed6a7/attachment-0005.png>


More information about the FreeSWITCH-users mailing list