Commit e4117d7
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: Iad5870223c081240c925b19df8d6af136953b9941 parent f66f77f commit e4117d7
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13652 | 13652 | | |
13653 | 13653 | | |
13654 | 13654 | | |
| 13655 | + | |
13655 | 13656 | | |
13656 | 13657 | | |
13657 | 13658 | | |
| |||
13675 | 13676 | | |
13676 | 13677 | | |
13677 | 13678 | | |
| 13679 | + | |
| 13680 | + | |
| 13681 | + | |
| 13682 | + | |
13678 | 13683 | | |
13679 | 13684 | | |
13680 | 13685 | | |
| |||
13793 | 13798 | | |
13794 | 13799 | | |
13795 | 13800 | | |
13796 | | - | |
| 13801 | + | |
13797 | 13802 | | |
13798 | 13803 | | |
13799 | 13804 | | |
| |||
0 commit comments