]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_tonedetect: Fixes some logic issues and typos
authorNaveen Albert <asterisk@phreaknet.org>
Tue, 11 Jan 2022 19:19:13 +0000 (19:19 +0000)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 31 Jan 2022 14:49:18 +0000 (08:49 -0600)
commitd107ebd94a10e9ae79195168d4ec04bd9f490245
treeb652a3e51438fc0af2aa350fc6295d2e344cde20
parent34065c7d84fa76b9185222b98378d2bfaafccb7d
res_tonedetect: Fixes some logic issues and typos

Fixes some minor logic issues with the module:

Previously, the OPT_END_FILTER flag was getting
tested before options were parsed, so it could
never evaluate to true (wrong ordering).

Additionally, the initially parsed timeout (float)
needs to be compared with 0, not the result int
which is set afterwards (wrong variable).

ASTERISK-29857 #close

Change-Id: I0062bce3b391c15e5df7a714780eeaa96dd93d4c
res/res_tonedetect.c