]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_dahdi: Never send MWI while off-hook.
authorNaveen Albert <asterisk@phreaknet.org>
Wed, 2 Oct 2024 00:24:00 +0000 (20:24 -0400)
committerNaveen Albert <asterisk@phreaknet.org>
Tue, 8 Oct 2024 14:17:48 +0000 (14:17 +0000)
commit4635a5ff4d6b89dc37ea61de693513d0e7707158
treed30d3ae5c2aa813a357f3ab7e9b08c6623361e52
parent9ecccb21ed911ef9cd6bcf63cb344aab2bfefb2f
chan_dahdi: Never send MWI while off-hook.

In some circumstances, it is possible for the do_monitor thread to
erroneously think that a line is on-hook and send an MWI FSK spill
to it when the line is really off-hook and no MWI should be sent.
Commit 0a8b3d34673277b70be6b0e8ac50191b1f3c72c6 previously fixed this
issue in a more readily encountered scenario, but it has still been
possible for MWI to be sent when it shouldn't be. To robustly fix
this issue, query DAHDI for the hook status to ensure we don't send
MWI on a line that is actually still off hook.

Resolves: #928
channels/chan_dahdi.c