]> 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:45 +0000 (14:17 +0000)
commit0a6a962ad727abbbecd092ad1310f16b0e3797c5
tree9f59a5a0bef0c4457dc924d59fdbfbc741632970
parent89c6557fc1fc52891f2974b8df8ebb25f29c4111
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