]> git.ipfire.org Git - thirdparty/asterisk.git/commit
apps/app_amd.c: Fixed total time and silence calculations
authorMichael Cargile <mikec@vicidial.com>
Sat, 24 Feb 2018 03:24:10 +0000 (22:24 -0500)
committerSean Bright <sean.bright@gmail.com>
Sun, 25 Feb 2018 17:57:34 +0000 (11:57 -0600)
commit7b01236028d6642e92e5ab5b92f2c8baa5ddae5a
treefbf926b945acd99b3aa2f45097cab0f7ca523413
parentd6d520a0406f7097346edf02a5bc6749779aafd6
apps/app_amd.c: Fixed total time and silence calculations

Between Asterisk 11 and Asterisk 13 there was a significant increase
in the number of AST_FRAME_NULL frames being processed by app_amd.c's
main loop. Each AST_FRAME_NULL frame was being counted as 100ms
towards the total time and silence. This may have been accurate
when app_amd.c was orginally added, but it is not in Asterisk 13.
As such the total analysis time and silence calculations were way
off effectively breaking app_amd.c

* Additional debug messages were added
* AST_FRAME_NULL are now ignored

ASTERISK-27610

Change-Id: I18aca01af98f87c1e168e6ae0d85c136d1df5ea9
apps/app_amd.c