]> 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:35 +0000 (13:38 +0000)
commit4dd6074f9f47d343bfe7c290cb8365bb02babe59
tree6fd9144e9dddfd8e84291469e7dafe4aca8c9674
parent142bdeff5b4416b43275c5374e96c2430c222678
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