]> git.ipfire.org Git - thirdparty/asterisk.git/commit
TALK_DETECT: A channel function that raises events when talking is detected
authorMatthew Jordan <mjordan@digium.com>
Fri, 30 May 2014 12:39:36 +0000 (12:39 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 30 May 2014 12:39:36 +0000 (12:39 +0000)
commitd0d19b1b90e7f08abbe170addda958f47e1e5f2e
treef9db8a1547d8ae26fab0ccdb4a31127bc5d0cbdb
parent1ff5e67a888e568854f4dbfb6982174e3ca818b7
TALK_DETECT: A channel function that raises events when talking is detected

This patch adds a new channel function TALK_DETECT that, when set on a
channel, causes events indicating the start/stop of talking on a channel to be
emitted to both AMI and ARI clients.

The function allows setting both the silence threshold (the length of silence
after which we decide no one is talking) as well as the talking threshold (the
amount of energy that counts as talking). Parameters can be updated on a channel
after talk detection has been enabled, and talk detection can be removed at
any time.

The events raised by the function use a nomenclature similar to existing AMI/ARI
events.
For AMI: ChannelTalkingStart/ChannelTalkingStop
For ARI: ChannelTalkingStarted/ChannelTalkingFinished

Review: https://reviewboard.asterisk.org/r/3563/

ASTERISK-23786 #close
Reported by: Matt Jordan

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@414934 65c4cc65-6c06-0410-ace0-fbb531ad65f3
CHANGES
funcs/func_talkdetect.c [new file with mode: 0644]
include/asterisk/stasis_channels.h
main/audiohook.c
main/stasis_channels.c
res/ari/ari_model_validators.c
res/ari/ari_model_validators.h
rest-api/api-docs/events.json