]> 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:29 +0000 (13:38 +0000)
commit485ccb74297ead4b92769b41b8bce0f8c2d7790b
tree15060661d3383fe872bab40cd5522abcd1a90c0a
parentf9e8c3488b60803c919200e0f6edd10b7427da36
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