[asterisk-bugs] [JIRA] (ASTERISK-23786) TALK_DETECT: A dialplan function that emits talking start/stop events for AMI/ARI

Matt Jordan (JIRA) noreply at issues.asterisk.org
Sat May 24 23:45:43 CDT 2014


Matt Jordan created ASTERISK-23786:
--------------------------------------

             Summary: TALK_DETECT: A dialplan function that emits talking start/stop events for AMI/ARI
                 Key: ASTERISK-23786
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23786
             Project: Asterisk
          Issue Type: New Feature
      Security Level: None
    Affects Versions: 12.2.0
            Reporter: Matt Jordan


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. Why a channel function? Because both ARI and AMI can set it on the channel, making it (slightly) more useful than existing speech/silence detection dialplan applications.

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):

{code}
same => n,Set(TALK_DETECT(set)=2500,256)
{code}

Parameters can be updated on a channel:

{code}
same => n,Set(TALK_DETECT(set)=)       ; Enable talk detection
same => n,Set(TALK_DETECT(set)=,128)   ; Set the talking threshold on the existing talk detection to 128
{code}

And talk detection can be removed:

{code}
same => n,Set(TALK_DETECT(remove)=)
{code}

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

Both 'end' events include the duration of talking that was detected (in milliseconds).



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list