]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_dahdi: Don't allow MWI FSK if channel not idle.
authorNaveen Albert <asterisk@phreaknet.org>
Tue, 29 Mar 2022 23:47:41 +0000 (23:47 +0000)
committerKevin Harwell <kharwell@digium.com>
Mon, 2 May 2022 20:45:54 +0000 (15:45 -0500)
commit3dc982bdcc7095ec7e663e1d4f3a184fbb0fd838
tree924a1d08ff834c9c7128686124631af368a79d10
parent7f3b4b07a4cc964fe72f4eca2ef458c4afa03c31
chan_dahdi: Don't allow MWI FSK if channel not idle.

For lines that have mailboxes configured on them, with
FSK MWI, DAHDI will periodically try to dispatch FSK
to update MWI. However, this is never supposed to be
done when a channel is not idle.

There is currently an edge case where MWI FSK can
extraneously get spooled for the channel if a caller
hook flashes and hangs up, which triggers a recall ring.
After one ring, the on hook time threshold in this if
condition has been satisfied and an MWI update is spooled.
This means that when the phone is picked up again, the
answerer gets an FSK spill before being reconnected to
the party on hold.

To prevent this, we now explicitly check to ensure that
subchannel 0 has no owner. There is no owner when DAHDI
channels are idle, but if the channel is "in use" in some
way (such as in the aforementioned scenario), then there
is an owner, and we shouldn't process MWI at this time.

ASTERISK-28518 #close

Change-Id: Ia3904434fd81688d71742f7e84358b7e1c38e92a
channels/chan_dahdi.c