<div dir="ltr">Hello,<br><br>Thank you for your help. It's an interesting problem. <br><br>Since we are transcoding from OPUS, we could try to just offer them one codec, but I'm not sure if US calls will work.<br>There isn't any way to tell Freeswitch to keep the codec "sticky" for a short interval of time / packet count?<br><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 27, 2021 at 10:06 AM Christian Berger <<a href="mailto:christian.berger@foncloud.net">christian.berger@foncloud.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Hi Allan,
<br>

<br>
this is a very simple logical bug which exists in Asterisk (and 
<br>
apparently in FreeSwitch).
<br>
If you allow for multiple codecs, Asterisk will just start with one, but 
<br>
once it gets a frame from the other side with a different codec, it will 
<br>
switch to that codec. If both sides do that, they start with different 
<br>
codecs and the latency is high enough, they'll get semi-stuck in a codec 
<br>
switching loop until one frame gets lost.
<br>

<br>
The proper bugfix would be to keep the codec choice "sticky" and not to 
<br>
change the codec on every packet. (e.g. wait for n packets with a new 
<br>
codec before you change to that codec) One side doing that should solve 
<br>
the problem.
<br>

<br>
The workaround, as mentioned before, is to limit the codecs you speak, 
<br>
but that will likely give you other slight problems regarding voice quality.
<br>

<br>
Bye
<br>
   Christian Berger
<br>

<br>

<br>
Am 26.09.21 um 22:23 schrieb Allan Kristensen:
<br>
<font color="#000000">> Hello,
</font><br>
<font color="#000000">> 
</font><br>
<font color="#000000">> We are getting these weird log messages from FS and I'm a little 
</font><br>
<font color="#000000">> uncertain what they are (there are thousands being logged), can someone 
</font><br>
<font color="#000000">> clarify?
</font><br>
<font color="#000000">> 
</font><br>
<font color="#000000">> September 23rd 2021, 10:35:40.849 ms-euc1-1a 
</font><br>
<font color="#000000">> 28423364-1c49-11ec-b0ec-e3438dde9495 2021-09-23 08:35:40.844181 
</font><br>
<font color="#000000">> [WARNING] switch_core_media.c:3305 Changing current codec to PCMU 
</font><br>
<font color="#000000">> (payload type 0).
</font><br>
<font color="#000000">> September 23rd 2021, 10:35:40.749 ms-euc1-1a 
</font><br>
<font color="#000000">> 28423364-1c49-11ec-b0ec-e3438dde9495 2021-09-23 08:35:40.744202 
</font><br>
<font color="#000000">> [WARNING] switch_core_media.c:3305 Changing current codec to PCMA 
</font><br>
<font color="#000000">> (payload type 8).
</font><br>
<font color="#000000">> September 23rd 2021, 10:35:40.669 ms-euc1-1a 
</font><br>
<font color="#000000">> 28423364-1c49-11ec-b0ec-e3438dde9495 2021-09-23 08:35:40.664168 
</font><br>
<font color="#000000">> [WARNING] switch_core_media.c:3305 Changing current codec to PCMU 
</font><br>
<font color="#000000">> (payload type 0).
</font><br>
<font color="#000000">> September 23rd 2021, 10:35:40.569 ms-euc1-1a 
</font><br>
<font color="#000000">> 28423364-1c49-11ec-b0ec-e3438dde9495 2021-09-23 08:35:40.564190 
</font><br>
<font color="#000000">> [WARNING] switch_core_media.c:3305 Changing current codec to PCMA 
</font><br>
<font color="#000000">> (payload type 8).
</font><br>
<font color="#000000">> September 23rd 2021, 10:35:40.489 ms-euc1-1a 
</font><br>
<font color="#000000">> 28423364-1c49-11ec-b0ec-e3438dde9495 2021-09-23 08:35:40.484194 
</font><br>
<font color="#000000">> [WARNING] switch_core_media.c:3305 Changing current codec to PCMU 
</font><br>
<font color="#000000">> (payload type 0).
</font><br>
<font color="#000000">> September 23rd 2021, 10:35:40.389 ms-euc1-1a 
</font><br>
<font color="#000000">> 28423364-1c49-11ec-b0ec-e3438dde9495 2021-09-23 08:35:40.384180 
</font><br>
<font color="#000000">> [WARNING] switch_core_media.c:3305 Changing current codec to PCMA 
</font><br>
<font color="#000000">> (payload type 8).
</font><br>
<font color="#000000">> September 23rd 2021, 10:35:40.309 ms-euc1-1a 
</font><br>
<font color="#000000">> 28423364-1c49-11ec-b0ec-e3438dde9495 2021-09-23 08:35:40.304190 
</font><br>
<font color="#000000">> [WARNING] switch_core_media.c:3305 Changing current codec to PCMU 
</font><br>
<font color="#000000">> (payload type 0).
</font><br>
<font color="#000000">> 
</font><br>
<font color="#000000">> I'm thinking it's because we are receiving RTP packets with both types 
</font><br>
<font color="#000000">> from remote?
</font><br>
<font color="#000000">> 
</font><br>
<font color="#000000">> It only happens for a specific provider, so I'm thinking it's them, I 
</font><br>
<font color="#000000">> just need to tell them the problem is.
</font><br>
<font color="#000000">> During codec negotiations we offered PCMA + PCMU and the SDP response 
</font><br>
<font color="#000000">> from them also had PCMA + PCMU, that means we can choose what we want 
</font><br>
<font color="#000000">> right? not that they should send us both? ;-)
</font><br>
<font color="#000000">> 
</font><br>
<font color="#000000">> Thank you...
</font><br>
<font color="#000000">>     Allan
</font><br>
<font color="#000000">> 
</font><br>
<font color="#000000">> _________________________________________________________________________
</font><br>
<font color="#000000">> 
</font><br>
<font color="#000000">> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" target="_blank">https://signalwire.com</a>
</font><br>
<font color="#000000">> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
</font><br>
<font color="#000000">> Build your next product on our scalable cloud platform.
</font><br>
<font color="#000000">> 
</font><br>
<font color="#000000">> Join our online community to chat in real time <a href="https://signalwire.community" target="_blank">https://signalwire.community</a>
</font><br>
<font color="#000000">> 
</font><br>
<font color="#000000">> Professional FreeSWITCH Services
</font><br>
<font color="#000000">> <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a>
</font><br>
<font color="#000000">> <a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a>
</font><br>
<font color="#000000">> 
</font><br>
<font color="#000000">> Official FreeSWITCH Sites
</font><br>
<font color="#000000">> <a href="https://freeswitch.com/oss" target="_blank">https://freeswitch.com/oss</a>
</font><br>
<font color="#000000">> <a href="https://freeswitch.org/confluence" target="_blank">https://freeswitch.org/confluence</a>
</font><br>
<font color="#000000">> <a href="https://cluecon.com" target="_blank">https://cluecon.com</a>
</font><br>
<font color="#000000">> 
</font><br>
<font color="#000000">> FreeSWITCH-users mailing list
</font><br>
<font color="#000000">> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
</font><br>
<font color="#000000">> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
</font><br>
<font color="#000000">> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
</font><br>
<font color="#000000">> <a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a>
</font><br>
<font color="#000000">> 
</font><br>

<br>
<br>
Christian Berger<br><br><br> <img src="cid:17c27d4451a38e7588a1" width="119" height="64"><br><br>foncloud GmbH & Co KG<br>Hahlweg 2a<br>36093 Künzell<br><br>Tel:  / <br>Fax: +49 661 968990-99<br><br>

<p class="MsoNormal"><span lang="EN-US">Email: </span><span lang="EN-US"><a href="mailto:Christian.Berger@foncloud.net" target="_blank">Christian.Berger@foncloud.net</a><br>
Web: <a href="http://www.foncloud.net" target="_blank"><span style="color:black;text-decoration:none">www.foncloud.net</span></a><br></span></p><p class="MsoNormal"><br><span lang="EN-US"></span><span lang="EN-US"></span></p><div><div lang="x-unicode"><div><p class="MsoNormal"><b><span style="color:black">P.S.: Wussten Sie schon?<span> </span></span></b></p><p class="MsoNormal"><b><span style="color:black">Unter<span> <a href="https://www.foncloud.net/wissen" target="_blank">https://www.foncloud.net/wissen</a>  </span>finden Sie zahlreiche Informationen und hilfreiche Artikel rund um unsere Produkte und Services.</span></b></p><p class="MsoNormal"><span style="font-size:11pt"> </span><font size="1"><br></font></p><p class="MsoNormal"><font size="1">Registergericht: Amtsgericht Fulda, Persönlich haftende Gesellschafterin der foncloud GmbH&Co.KG: Global Brain Network GmbH</font></p></div></div></div><font size="1">Geschäftsführer der Global Brain Network GmbH: Peter Krug Sitz der Gesellschaft: Künzell.<br><br>Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.<br><br>This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.</font><br><br><br><br>
</div>


_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>