]> 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:56:44 +0000 (12:56 -0500)
commitbb973aecebee5a3c349cbffad41471b3f4705203
tree19f5a9ab9d5e2cb6bf8f7029f2701e7e480094eb
parentd0e270c97319b37061cafc42f8a1db6d3a4aa7f4
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