]> 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:47 +0000 (14:17 +0000)
commit63e9cc19d1f2a28e72835041958545e27c0bbb7a
treecc1ef41d9e78f957edea77a02a91c662d71f30bf
parent5cf699370b81259d61b9d0713f29856d3d2f2f93
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