]> 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:18:47 +0000 (10:18 -0500)
commit626fefdf7d775fc23cde7fa6535227810ad98a59
treead4ec3e5e9b9143e6d27eb197ce351b8aac14f33
parent350ffcb02b1708b0c6e1d4be95f948550e7133cd
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