]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_dial: Fix dial status regression.
authorNaveen Albert <asterisk@phreaknet.org>
Sat, 30 Apr 2022 16:44:26 +0000 (16:44 +0000)
committerKevin Harwell <kharwell@digium.com>
Fri, 1 Jul 2022 15:19:38 +0000 (10:19 -0500)
commit26193507418479a2e08a23555dff2887d4e212f7
tree5612976ea35310dc08ce11d65d4727285292ddc1
parentd0ee3652be1a7924a04739853a5647fcc05fd100
app_dial: Fix dial status regression.

ASTERISK_28638 caused a regression by incorrectly aborting
early and overwriting the status on certain calls.
This was exhibited by certain technologies such as DAHDI,
where DAHDI returns NULL for the request if a line is busy.
This caused the BUSY condition to be incorrectly treated
as CHANUNAVAIL because the DIALSTATUS was getting incorrectly
overwritten and call handling was aborted early.

This is fixed by instead checking if any valid peers have been
specified, as opposed to checking the list size of successful
requests. This is because the latter could be empty but this
does not indicate any kind of problem. This restores the
previous working behavior.

ASTERISK-29989 #close

Change-Id: I4d4b209b967816b1bc791534593ababa2b99bb88
apps/app_dial.c