<html>
<body>
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">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">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">sales@freeswitch.com</a> </font><br>
<font color="#000000">> <a href="https://freeswitch.com">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">https://freeswitch.com/oss</a> </font><br>
<font color="#000000">> <a href="https://freeswitch.org/confluence">https://freeswitch.org/confluence</a> </font><br>
<font color="#000000">> <a href="https://cluecon.com">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">FreeSWITCH-users@lists.freeswitch.org</a> </font><br>
<font color="#000000">> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">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">http://lists.freeswitch.org/mailman/options/freeswitch-users</a> </font><br>
<font color="#000000">> <a href="https://freeswitch.com">https://freeswitch.com</a> </font><br>
<font color="#000000">>  </font><br>

<BR />
<BR />
Christian Berger<br><br><br> <img src="cid:0eb5f48c.e33a6fec.jpg.61502498" 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><!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:AllowPNG/>
 </o:OfficeDocumentSettings>
</xml><![endif]-->

<p class="MsoNormal"><span style="font-size:10.5pt; mso-ascii-font-family:
calibri; mso-fareast-font-family:" times new roman" mso-hansi-font-family:calibri; color:black; mso-ansi-language:en-us;" lang="EN-US">Email: </span><span style="font-size:10.5pt; mso-ascii-font-family:calibri; mso-fareast-font-family:
" times new roman" mso-hansi-font-family:calibri; color:black; mso-ansi-language:
en-us;" lang="EN-US">Christian.Berger@foncloud.net<br>
Web: <a href="http://www.foncloud.net "><span style="mso-ascii-font-family:calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:calibri; mso-fareast-theme-font:
minor-latin; mso-hansi-font-family:calibri; mso-hansi-theme-font:minor-latin; color:black; text-decoration:none; text-underline:none;">www.foncloud.net</span></a><br></span></p><p class="MsoNormal"><br><span style="font-size:10.5pt; mso-ascii-font-family:calibri; mso-fareast-font-family:
" times new roman" mso-hansi-font-family:calibri; color:black; mso-ansi-language:
en-us;" lang="EN-US"></span><span style="font-size:7.5pt; mso-ascii-font-family:calibri; mso-fareast-font-family:
" times new roman" mso-hansi-font-family:calibri; color:black; mso-ansi-language:
en-us;" lang="EN-US"></span></p><div><div class="moz-text-html" lang="x-unicode"><div class="WordSection1"><p class="MsoNormal"><b><span style="color: black;">P.S.: Wussten Sie schon?<span class="apple-converted-space"> </span></span></b></p><p class="MsoNormal"><b><span style="color: black;">Unter<span class="apple-converted-space"> <a href="https://www.foncloud.net/wissen">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:11.0pt;"> </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 />
</body>
</html>