]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_amd: Fixed timeout issue
authorMichael Cargile <mikec@vicidial.com>
Tue, 5 Nov 2019 18:16:48 +0000 (13:16 -0500)
committerMichael Cargile <mikec@vicidial.com>
Tue, 19 Nov 2019 14:58:08 +0000 (09:58 -0500)
commitcf5b7f3a0b1003ed43ac1554b5077afe07ed3bd1
tree689d2dddccc2fd60aacfbaafd67df74e34c83925
parenteb8f255d44589e214c44e6db35cfeaa6a268318f
app_amd: Fixed timeout issue

ASTERISK_28143 attempted to fix an issue where calls with no audio would never
timeout. It did so by adding AST_FRAME_NULL as a frame type to process in its
calculations. Unfortunately these frames seem to show up at irregular time
intervals. This resulted in app_amd returning prematurely most of the time.

* Removed AST_FRAME_NULL from the calculations
* Added a check to see how much time has actually passed since app_amd began

ASTERISK-28608

Change-Id: I642a21b02d389b17e40ccd5357754b034c3daa42
apps/app_amd.c