]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_dial: Fix progress timeout calculation with no answer timeout.
authorNaveen Albert <asterisk@phreaknet.org>
Wed, 16 Oct 2024 21:46:42 +0000 (17:46 -0400)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 14 Nov 2024 20:02:03 +0000 (20:02 +0000)
commit33e8398e2b885000b406cf3275036cfa0b8229fe
tree578792c7cd800ad602b7f5dae1fe48cd6b967efb
parent0f3d8f21c8241453e32efd70ec67db153db1aad3
app_dial: Fix progress timeout calculation with no answer timeout.

If to_answer is -1, simply comparing to see if the progress timeout
is smaller than the answer timeout to prefer it will fail. Add
an additional check that chooses the progress timeout if there is
no answer timeout (or as before, if the progress timeout is smaller).

Resolves: #821
(cherry picked from commit 4dd6074f9f47d343bfe7c290cb8365bb02babe59)
apps/app_dial.c