]> 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)
committerNaveen Albert <asterisk@phreaknet.org>
Thu, 24 Oct 2024 13:38:33 +0000 (13:38 +0000)
commit6a07e8e0f11a088c1c74fa2f2b1f855d671c2765
treebb18fb55ae98d354f2508bd85aa36d188c734ee7
parent23218032eff45362b6c3d035460823a83e1a9fff
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
apps/app_dial.c