]> 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)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Thu, 30 Jun 2022 23:09:54 +0000 (18:09 -0500)
commit96e56b89e0d52e83ca6b6b369798a6f17cac4fb5
treea51a1ca4ce51281ad7fe2b1e6ddf20c3869e507a
parent628661ca42ac32a83e5c006174788c9bfc178c4a
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