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 e6ade6ddbd)
releases/20
Igor Goncharovsky1 month agocommitted byGeorge Joseph