asterisk/channels
Naveen Albert 180ca32565 chan_dahdi: Fix unavailable channels returning busy.
This fixes dahdi_request to properly set the cause
code to CONGESTION instead of BUSY if no channels
were actually available.

Currently, the cause is erroneously set to busy
if the channel itself is found, regardless of its
current state. However, if the channel is not available
(e.g. T1 down, card not operable, etc.), then the
channel itself may not be in a functional state,
in which case CHANUNAVAIL is the correct cause to use.

This adds a simple check to ensure that busy tone
is only returned if a channel is encountered that
has an owner, since that is the only possible way
that a channel could actually be busy.

ASTERISK-30274 #close

Change-Id: Iad5870223c081240c925b19df8d6af136953b994
2022-10-26 11:14:25 -05:00
..
dahdi channels: Fix for Doxygen. 2021-11-19 09:02:06 -06:00
iax2 general: Fix various typos. 2022-07-12 07:46:03 -05:00
pjsip documentation: Adds versioning information. 2022-04-26 17:40:39 -05:00
sip chan_sip: Fix crash when accessing RURI before initiating outgoing call 2021-12-13 13:39:26 -06:00
Makefile build: Remove obsolete leftover build references. 2022-03-30 17:10:51 -05:00
chan_alsa.c chan_alsa, chan_sip: Add replacement to moduleinfo 2021-08-19 07:58:39 -05:00
chan_audiosocket.c Compiler fixes for GCC with -Og 2020-11-03 17:08:07 -06:00
chan_bridge_media.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
chan_console.c channels: Fix for Doxygen. 2021-11-19 09:02:06 -06:00
chan_dahdi.c chan_dahdi: Fix unavailable channels returning busy. 2022-10-26 11:14:25 -05:00
chan_dahdi.h sig_analog: Changes to improve electromechanical signalling compatibility 2021-08-20 12:26:18 -07:00
chan_iax2.c res_crypto: Use EVP API's instead of legacy API's 2022-09-12 16:19:37 -05:00
chan_mgcp.c utils.c: Remove all usages of ast_gethostbyname() 2022-01-06 09:45:56 -06:00
chan_motif.c channels: Fix for Doxygen. 2021-11-19 09:02:06 -06:00
chan_pjsip.c res_pjsip: Add TEL URI support for basic calls. 2022-09-13 04:51:00 -05:00
chan_rtp.c channels: Spelling fixes 2021-11-16 05:35:29 -06:00
chan_sip.c GCC12: Fixes for 16+ 2022-05-09 08:21:45 -05:00
chan_skinny.c utils.c: Remove all usages of ast_gethostbyname() 2022-01-06 09:45:56 -06:00
chan_unistim.c utils.c: Remove all usages of ast_gethostbyname() 2022-01-06 09:45:56 -06:00
console_board.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
console_gui.c channels: Spelling fixes 2021-11-16 05:35:29 -06:00
console_video.c channels: Spelling fixes 2021-11-16 05:35:29 -06:00
console_video.h Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
sig_analog.c chan_dahdi: Fix buggy and missing Caller ID parameters 2022-07-14 08:19:28 -05:00
sig_analog.h general: Fix various typos. 2022-07-12 07:46:03 -05:00
sig_pri.c progdocs: Fix for Doxygen, the hidden parts. 2021-12-02 10:37:38 -06:00
sig_pri.h progdocs: Fix for Doxygen, the hidden parts. 2021-12-02 10:37:38 -06:00
sig_ss7.c progdocs: Fix for Doxygen, the hidden parts. 2021-12-02 10:37:38 -06:00
sig_ss7.h channels: Spelling fixes 2021-11-16 05:35:29 -06:00
vcodecs.c channels: Spelling fixes 2021-11-16 05:35:29 -06:00
vgrabbers.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00