]> 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:01:34 +0000 (20:01 +0000)
commit1b31ced9948feabf3883d5ed12e45d2ca3df059d
treeb7127c1ff01013e09b2fae89f7681c85899a26d3
parentbfe56d18c4dbabbfb03f1fe797c80527d120e894
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 6a07e8e0f11a088c1c74fa2f2b1f855d671c2765)
apps/app_dial.c