[Home]

Summary:ASTERISK-29863: codecs: clicking is introduced onto channels
Reporter:N A (InterLinked)Labels:
Date Opened:2022-01-13 12:22:46.000-0600Date Closed:2022-01-28 12:00:00.000-0600
Priority:MinorRegression?
Status:Closed/CompleteComponents:Codecs/codec_g722
Versions:18.9.0 Frequency of
Occurrence
Frequent
Related
Issues:
Environment:Attachments:( 0) meh.wav
( 1) Tone_-_Custom.mp3
( 2) Tone_-_Milliwatt.mp3
( 3) Tone_-_PlayTones.mp3
Description:Random clicking on the line has been an annoying issue that I and several others have experienced over the years with Asterisk. These aren't artifacts of particular audio files (typically .ulaw), this can happen even with something like PlayTones(1004) or Read(digits,dial,,i). For that reason, it doesn't seem like purely a transcoding issue to me.

I don't believe this issue has been raised publicly before, but multiple people have independently experienced this and reported it to me.

Recently, a few of us made a breakthrough in this issue by discovering that G722 was partially or fully to blame for this. The issue was experienced with a SIP ATA and an Asterisk system that were both using G.722.

The SIP endpoints used were:
a) Grandstream HT818
b) Yealink T52S IP Phone.

The issue was resolved when disallowing the g722 codec for both the ATA and Asterisk, forcing the call to use G711 ulaw. The random clicking went away at that point.

For some reason, using G722 codec caused clicking to be added to the call, but this does not happen with G711.

Clicking sounds "random" to the ear and does not have a steady rhthym.

In most cases, this is a minor annoyance, but for some things where audio is sensitive (e.g. modems), this causes severe issues which makes the use of G722 untennable.
Comments:By: Asterisk Team (asteriskteam) 2022-01-13 12:22:47.418-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

By: N A (InterLinked) 2022-01-13 12:47:36.343-0600

Examples attached.

By: Sean Bright (seanbright) 2022-01-13 13:21:42.624-0600

Attached [^meh.wav].

{{Milliwatt()}} to RTP to G722 raw data to wav ({{ffmpeg -i meh.g722 meh.wav}})

By: George Joseph (gjoseph) 2022-01-14 06:25:58.838-0600

How did you create your samples?
If you play silence, do you still here the clicking?


By: Asterisk Team (asteriskteam) 2022-01-28 12:00:00.499-0600

Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1].

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines