[asterisk-bugs] [JIRA] (ASTERISK-28462) func_talkdetect: TALK_DETECT firing immediately even if phone microphone is muted
Joshua C. Colp (JIRA)
noreply at issues.asterisk.org
Wed Jun 26 11:31:47 CDT 2019
[ https://issues.asterisk.org/jira/browse/ASTERISK-28462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=247473#comment-247473 ]
Joshua C. Colp commented on ASTERISK-28462:
-------------------------------------------
>From [~kharwell] on forum:
{noformat}
I think this may be a bug in Asterisk. Here’s the code that sets “talking” (from func_talkdetect.c):
ast_dsp_silence(td_params->dsp, frame, &total_silence);
if (total_silence < td_params->dsp_silence_threshold) {
if (!td_params->talking) {
update_talking = 1;
td_params->talking_start = ast_tvnow();
}
td_params->talking = 1;
}
I’m guessing total_silence here starts out at zero or some really low number. Either way it is most likely less than the dsp_silence_threshold value. If so then it would trigger talking every time at start.
Anyhow, I was able to replicate the problem as well when watching for AMI events. Please create a bug report on our issue tracker. Describe the problem, and feel free to add a link to your post here.
{noformat}
> func_talkdetect: TALK_DETECT firing immediately even if phone microphone is muted
> ---------------------------------------------------------------------------------
>
> Key: ASTERISK-28462
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28462
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Functions/func_talkdetect
> Affects Versions: 16.4.0
> Reporter: Matt Altepeter
>
> This issue on the community forums provides a bit more background on the issue: https://community.asterisk.org/t/issues-with-talk-detect-and-ari/80096/10
> But essentially, when I call into a number with talk detect set and then going to a stasis application, the sound file playback (first step that stasis executes) stops playback immediately because when I receive the ChannelTalkingStarted event I want to stop the playback of the file. This occurs even when the microphone is muted prior to the call being answered.
> The speculation, as seen in the link above, is that total_silence is set to an extremely low value.
> This issue was able to be replicated via the AMI as well
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list