[Freeswitch-users] Confused about codecs?

Allan Kristensen ak at hejdu.dk
Mon Sep 27 15:32:53 UTC 2021


Hello,

Thank you for your help. It's an interesting problem.

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.
There isn't any way to tell Freeswitch to keep the codec "sticky" for a
short interval of time / packet count?


On Mon, Sep 27, 2021 at 10:06 AM Christian Berger <
christian.berger at foncloud.net> wrote:

> Hi Allan,
>
> this is a very simple logical bug which exists in Asterisk (and
> apparently in FreeSwitch).
> If you allow for multiple codecs, Asterisk will just start with one, but
> once it gets a frame from the other side with a different codec, it will
> switch to that codec. If both sides do that, they start with different
> codecs and the latency is high enough, they'll get semi-stuck in a codec
> switching loop until one frame gets lost.
>
> The proper bugfix would be to keep the codec choice "sticky" and not to
> change the codec on every packet. (e.g. wait for n packets with a new
> codec before you change to that codec) One side doing that should solve
> the problem.
>
> The workaround, as mentioned before, is to limit the codecs you speak,
> but that will likely give you other slight problems regarding voice
> quality.
>
> Bye
>    Christian Berger
>
>
> Am 26.09.21 um 22:23 schrieb Allan Kristensen:
> > Hello,
> >
> > We are getting these weird log messages from FS and I'm a little
> > uncertain what they are (there are thousands being logged), can someone
> > clarify?
> >
> > September 23rd 2021, 10:35:40.849 ms-euc1-1a
> > 28423364-1c49-11ec-b0ec-e3438dde9495 2021-09-23 08:35:40.844181
> > [WARNING] switch_core_media.c:3305 Changing current codec to PCMU
> > (payload type 0).
> > September 23rd 2021, 10:35:40.749 ms-euc1-1a
> > 28423364-1c49-11ec-b0ec-e3438dde9495 2021-09-23 08:35:40.744202
> > [WARNING] switch_core_media.c:3305 Changing current codec to PCMA
> > (payload type 8).
> > September 23rd 2021, 10:35:40.669 ms-euc1-1a
> > 28423364-1c49-11ec-b0ec-e3438dde9495 2021-09-23 08:35:40.664168
> > [WARNING] switch_core_media.c:3305 Changing current codec to PCMU
> > (payload type 0).
> > September 23rd 2021, 10:35:40.569 ms-euc1-1a
> > 28423364-1c49-11ec-b0ec-e3438dde9495 2021-09-23 08:35:40.564190
> > [WARNING] switch_core_media.c:3305 Changing current codec to PCMA
> > (payload type 8).
> > September 23rd 2021, 10:35:40.489 ms-euc1-1a
> > 28423364-1c49-11ec-b0ec-e3438dde9495 2021-09-23 08:35:40.484194
> > [WARNING] switch_core_media.c:3305 Changing current codec to PCMU
> > (payload type 0).
> > September 23rd 2021, 10:35:40.389 ms-euc1-1a
> > 28423364-1c49-11ec-b0ec-e3438dde9495 2021-09-23 08:35:40.384180
> > [WARNING] switch_core_media.c:3305 Changing current codec to PCMA
> > (payload type 8).
> > September 23rd 2021, 10:35:40.309 ms-euc1-1a
> > 28423364-1c49-11ec-b0ec-e3438dde9495 2021-09-23 08:35:40.304190
> > [WARNING] switch_core_media.c:3305 Changing current codec to PCMU
> > (payload type 0).
> >
> > I'm thinking it's because we are receiving RTP packets with both types
> > from remote?
> >
> > It only happens for a specific provider, so I'm thinking it's them, I
> > just need to tell them the problem is.
> > During codec negotiations we offered PCMA + PCMU and the SDP response
> > from them also had PCMA + PCMU, that means we can choose what we want
> > right? not that they should send us both? ;-)
> >
> > Thank you...
> >     Allan
> >
> >
> _________________________________________________________________________
> >
> > The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> > Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> > Build your next product on our scalable cloud platform.
> >
> > Join our online community to chat in real time
> https://signalwire.community
> >
> > 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
> >
>
>
> Christian Berger
>
>
>
>
> foncloud GmbH & Co KG
> Hahlweg 2a
> 36093 Künzell
>
> Tel: /
> Fax: +49 661 968990-99
>
> Email: Christian.Berger at foncloud.net
> Web: www.foncloud.net
>
>
> *P.S.: Wussten Sie schon? *
>
> *Unter https://www.foncloud.net/wissen <https://www.foncloud.net/wissen>
> finden Sie zahlreiche Informationen und hilfreiche Artikel rund um unsere
> Produkte und Services.*
>
>
>
> Registergericht: Amtsgericht Fulda, Persönlich haftende Gesellschafterin
> der foncloud GmbH&Co.KG: Global Brain Network GmbH
> Geschäftsführer der Global Brain Network GmbH: Peter Krug Sitz der
> Gesellschaft: Künzell.
>
> 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.
>
> 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.
>
>
>
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20210927/6e6c64c3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0eb5f48c.e33a6fec.jpg
Type: image/jpeg
Size: 56822 bytes
Desc: not available
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20210927/6e6c64c3/attachment-0001.jpg>


More information about the FreeSWITCH-users mailing list