]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_waitforsilence: Cleanup & don't treat missing frames as 'noise'
authorSean Bright <sean.bright@gmail.com>
Wed, 6 Sep 2017 15:50:53 +0000 (11:50 -0400)
committerSean Bright <sean.bright@gmail.com>
Wed, 6 Sep 2017 21:13:34 +0000 (16:13 -0500)
commit33533109e4aaf09ea4a344536e0276755624ec40
tree4783ac6d1179b44473a602b5f70b19b570573c31
parent47e4cbc3952b08c24e6a22c943442b2382c13861
app_waitforsilence: Cleanup & don't treat missing frames as 'noise'

* WaitForSilence completes successfully if it receives no media in the
  specified timeout, but when acting as WaitForNoise that logic needs
  to be reversed.

* Use standard argument parsing macros and add some error checking for
  invalid values.

* The documentation indicated that the first argument to both
  WaitForSilence and WaitForNoise was required when it was not. Update
  the documentation to reflect that.

* Wrap up some behavior in structs to avoid boolean checks all over the
  place.

ASTERISK-24066 #close
Reported by: M vd S

Change-Id: I01d40adc5b63342bb5018a1bea2081a0aa191ef9
apps/app_waitforsilence.c