]> 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:43 +0000 (14:17 +0000)
commitfa614f755d2dbfa69483557fb876ff2d6bda5d90
treecb2873e37de03954d72f8b5e8d464c3cbd9a7cbb
parent29e0d77765d58522e059a84776e606f81e9c3eff
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