]> 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:41:16 +0000 (08:41 -0600)
commit304503c02b7d776c2e0547f6ad4f8e649c74cb6b
treecf4844a0cd13093637aa85e77d3219e7995296d5
parented95dc32828221afacd769a62044e2b023eb9a19
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