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
Hello Ulrich, take a look at https://freeswitch.org/confluence/display/FREESWITCH/Codec+Negotiation The parameter "disable-transcoding" is for the early codec negotiation. But you want to have a late codec negotiation.
/Note/: it is commonly misunderstood that this parameter disables the transcoding capability in FS. That is wrong.
This parameter just changes the outbound codec to match the one negotiated on the inbound leg so that no transcoding will be required.
(Wiki Quote) Also the codec list is a priority list. When you list PCMU first, it is chosen first. - Paul Am 07.11.18 um 13:55 schrieb Ulrich Backes:
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
On Wed, Nov 07, 2018 at 01:55:57PM +0100, Ulrich Backes wrote:
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
Hello Uli, FS (.111) starts generating ringback and decides to use G722 on A leg. So remove the ringback for starters. Also, I'd leave "inbound-codec-negotiation" at default. "disable-transcoding" should also not be set, as this is for early negotiation, not late, IIRC. Probably it does nothing when late negotiation is used, but better just remove it. You also need <action application="set" data="inherit_codec=true"/> in your dialplan. This is all written down here: https://freeswitch.org/confluence/display/FREESWITCH/Codec+Negotiation Kind regards, Seb
Hi all, I just want to inform you about the solution of my problem: The principal point: I had to remove the ringback (local_extension in dialplan). Thank's for the advise and thanks for all other advise because I could learn from it. Thank you very much. Kind regards Uli -----Ursprüngliche Nachricht----- Von: Sebastian Kemper <sebastian_ml@gmx.net> Gesendet: Mittwoch, 7. November 2018 19:27 An: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Betreff: Re: [Freeswitch-users] How to avoid transcoding? On Wed, Nov 07, 2018 at 01:55:57PM +0100, Ulrich Backes wrote:
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
Hello Uli, FS (.111) starts generating ringback and decides to use G722 on A leg. So remove the ringback for starters. Also, I'd leave "inbound-codec-negotiation" at default. "disable-transcoding" should also not be set, as this is for early negotiation, not late, IIRC. Probably it does nothing when late negotiation is used, but better just remove it. You also need <action application="set" data="inherit_codec=true"/> in your dialplan. This is all written down here: https://freeswitch.org/confluence/display/FREESWITCH/Codec+Negotiation Kind regards, Seb --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus
Hi, try Confluence: https://freeswitch.org/confluence/display/FREESWITCH/inherit_codec https://freeswitch.org/confluence/display/FREESWITCH/Codec+Negotiation Also, you probably don't want 183 in this situation. Regards, Alex On Wed, Nov 7, 2018 at 11:04 PM Ulrich Backes <backes@solthor.de> 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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Alex Sibyakin | Support Engineer FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> Email: alex@freeswitch.com Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/> Need commercial support? Contact sales@freeswitch.com for details.
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@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@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
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 'inbound-codec-negotiation' to 'generous'. 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. ________________________________ From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Ulrich Backes <backes@solthor.de> Sent: 07 November 2018 12:55:57 To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] How to avoid transcoding? Hi guys, I've investigated many hours and cannot solve this problem: A and B should use g711u. A: [cid:d242e27033084e59a8a877a137eb44ba@Open-Xchange] B: [cid:cd462457d2134dd4950ddf12e9e7ecf8@Open-Xchange] But FreeSwitch decides to transcode: [cid:61e85c8ab9904d83b9e3553e5745e36d@Open-Xchange] 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
participants (6)
-
Alexey Sibyakin
-
António Silva
-
Paul Zillmann
-
Sebastian Kemper
-
Shaun Stokes
-
Ulrich Backes