]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_dahdi: Fix broken operator mode clearing.
authorNaveen Albert <asterisk@phreaknet.org>
Tue, 26 Apr 2022 19:00:14 +0000 (19:00 +0000)
committerJoshua Colp <jcolp@sangoma.com>
Mon, 9 May 2022 14:39:23 +0000 (09:39 -0500)
commit2b8086e38215101cbf0affc054db6e9a19ed4f9f
tree514748111cb67b4cc16b9b0c1ecd07c112b1b51d
parent910d9caf86e0d29b0dba520ac0de17d1514a528e
chan_dahdi: Fix broken operator mode clearing.

Currently, the operator services mode in DAHDI is broken and unusable.
The actual operator recall functionality works properly; however,
when the operator hangs up (which is the only way that such a call
is allowed to end), both lines are permanently taken out of service
until "dahdi restart" is run. This prevents this feature from being
used.

Operator mode is one of the few factors that can cause the general
analog event handling in sig_analog not to be used. Several years
back, much of the analog handling was moved from chan_dahdi to
sig_analog. However, this was not done fully or consistently at
the time, and when operator mode is active, sig_analog does not
get used. Generally this is correct, but in the case of hangup
it should be using sig_analog regardless of the operator mode;
otherwise, the lines do not properly clear and they become unusable.

This bug is fixed so the operator can now hang up and properly
release the call. It is treated just like any other hangup. The
operator mode functionality continues to work as it did before.

ASTERISK-29993 #close

Change-Id: Ib2e3ddb40d9c71e8801e0b4bb0a12e2b52f51d24
channels/chan_dahdi.c