VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
ak at hejdu.dk Guest
|
Posted: Sun Sep 26, 2021 3:53 pm Post subject: [Freeswitch-users] Confused about codecs? |
|
|
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 .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 .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 .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 |
|
Back to top |
|
|
s.safarov at gmail.com Guest
|
Posted: Mon Sep 27, 2021 1:09 am Post subject: [Freeswitch-users] Confused about codecs? |
|
|
Look like on the other side used Asterisk.
In such a case, I offer only one codec and from another side, I receive a response with only one code.
Sergey
On Sun, Sep 26, 2021 at 11:40 PM Allan Kristensen <ak@hejdu.dk (ak@hejdu.dk)> wrote:
Quote: | 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 .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 .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 .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@freeswitch.com (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 (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 |
|
|
Back to top |
|
|
christian.berger at fo... Guest
|
Posted: Mon Sep 27, 2021 3:18 am Post subject: [Freeswitch-users] Confused about codecs? |
|
|
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:
Quote: | 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 .
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 .
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 .
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@freeswitch.com (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 (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
| Christian Berger
foncloud GmbH & Co KG
Hahlweg 2a
36093 Künzell
Tel: /
Fax: +49 661 968990-99
<![endif]-->
Email: Christian.Berger@foncloud.net
Web: www.foncloud.net
P.S.: Wussten Sie schon?
Unter 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. |
|
Back to top |
|
|
ak at hejdu.dk Guest
|
Posted: Mon Sep 27, 2021 10:52 am Post subject: [Freeswitch-users] Confused about codecs? |
|
|
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@foncloud.net (christian.berger@foncloud.net)> wrote:
Quote: | 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:
Quote: | 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 .
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 .
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 .
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@freeswitch.com (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 (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
|
Christian Berger
foncloud GmbH & Co KG
Hahlweg 2a
36093 Künzell
Tel: /
Fax: +49 661 968990-99
Email: Christian.Berger@foncloud.net (Christian.Berger@foncloud.net)
Web: www.foncloud.net
P.S.: Wussten Sie schon?
Unter 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@freeswitch.com (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 (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 |
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|