asterisk/funcs
Sean Bright 886983b114 func_talkdetect.c: Fix logical errors in silence detection.
There are 3 separate changes here:

1. The documentation erroneously stated that the dsp_talking_threshold
   argument was a number of milliseconds when it is actually an energy
   level used by the DSP code to classify talking vs. silence.

2. Fixes a copy paste error in the argument handling code.

3. Don't erroneously switch to the talking state if we aren't actively
   handling a frame we've classified as talking.

Patch inspired by one provided by Moritz Fain (License #6961).

ASTERISK-27816 #close

Change-Id: I5953fd570b98b49c41cee55bfe3b941753fb2511
2021-10-19 10:24:52 -05:00
..
Makefile Fix GCC 8 build issues. 2018-05-11 09:48:58 -04:00
func_aes.c func_aes: Avoid incorrect error message on load. 2020-03-31 12:07:23 -05:00
func_base64.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_blacklist.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_callcompletion.c loader: Convert reload_classes to built-in modules. 2018-03-14 05:20:12 -04:00
func_callerid.c func_callerid+res_agi: Fix compile errors related to -Werror=zero-length-bounds 2021-03-10 08:57:27 -06:00
func_cdr.c loader: Convert reload_classes to built-in modules. 2018-03-14 05:20:12 -04:00
func_channel.c func_channel: Add CHANNEL_EXISTS function. 2021-09-22 09:13:57 -05:00
func_config.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_curl.c func_curl.c: Allow user to set what return codes constitute a failure. 2020-11-06 12:39:03 -06:00
func_cut.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_db.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_devstate.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_dialgroup.c astobj2: Remove legacy ao2_container_alloc routine. 2018-11-21 09:56:16 -05:00
func_dialplan.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_enum.c loader: Convert reload_classes to built-in modules. 2018-03-14 05:20:12 -04:00
func_env.c func_env: Add DIRNAME and BASENAME functions 2021-09-10 11:48:10 -05:00
func_extstate.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_frame_drop.c func_frame_drop: New function 2021-08-09 07:59:09 -05:00
func_frame_trace.c bridge_softmix: Forward TEXT frames 2018-04-17 10:30:23 -06:00
func_global.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_groupcount.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_hangupcause.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
func_holdintercept.c modules: change module LOAD_FAILUREs to LOAD_DECLINES 2017-04-12 15:57:21 -06:00
func_iconv.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_jitterbuffer.c func_jitterbuffer: Add audio/video sync support. 2019-09-18 20:22:50 +00:00
func_lock.c func_lock: Add "dialplan locks show" cli command. 2021-06-11 13:26:50 -05:00
func_logic.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_math.c func_math: Return integer instead of float if possible 2021-08-19 11:13:39 -05:00
func_md5.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_module.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
func_odbc.c func_odbc: Introduce minargs config and expose ARGC in addition to ARGn. 2021-02-23 12:18:28 -06:00
func_periodic_hook.c xml: Embed module information into core XML documentation. 2021-03-16 10:30:43 -05:00
func_periodic_hook.exports.in Fix error loading res_monitor. 2014-04-23 15:02:39 +00:00
func_pitchshift.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_pjsip_aor.c xml: Embed module information into core XML documentation. 2021-03-16 10:30:43 -05:00
func_pjsip_contact.c xml: Embed module information into core XML documentation. 2021-03-16 10:30:43 -05:00
func_pjsip_endpoint.c xml: Embed module information into core XML documentation. 2021-03-16 10:30:43 -05:00
func_presencestate.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_rand.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_realtime.c Dialplan functions: Fix some channel autoservice misuse. 2018-06-19 10:56:33 -06:00
func_sayfiles.c func_sayfiles: Retrieve say file names 2021-09-10 11:46:03 -05:00
func_scramble.c func_scramble: Audio scrambler function 2021-08-19 09:48:41 -05:00
func_sha1.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_shell.c AST-2017-006: Fix app_minivm application MinivmNotify command injection 2017-08-30 18:43:38 +00:00
func_sorcery.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_speex.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_sprintf.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_srv.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_strings.c func_strings: Add STRBETWEEN function 2021-09-10 15:53:25 -05:00
func_sysinfo.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_talkdetect.c func_talkdetect.c: Fix logical errors in silence detection. 2021-10-19 10:24:52 -05:00
func_timeout.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_uri.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_version.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_vmcount.c func_vmcount: Add support for multiple mailboxes 2021-09-22 14:30:38 -05:00
func_volume.c func_volume: Add read capability to function. 2021-05-26 11:19:00 -05:00