The functions WaitForNoise() and WaitForSilence() use the time()
functions to calculate elapsed time, which causes the timer to fire on
a whole second boundary, and the actual function execution time to fire
the timer may be 1 second less than expected. This fix replaces time()
with ast_tvnow().
Fixes: #1401
(cherry picked from commit 648b60f0f0)
releases/23
Igor Goncharovsky1 month agocommitted byAsterisk Development Team