chan_dahdi: Allow MWI to be manually toggled on channels.

This adds a CLI command to manually toggle the MWI status
of a channel, useful for troubleshooting or resetting
MWI devices, similar to the capabilities offered with
SIP messaging to manually control MWI status.

UserNote: The 'dahdi set mwi' now allows MWI on channels
to be manually toggled if needed for troubleshooting.

Resolves: #440
(cherry picked from commit 4b908f364d)
This commit is contained in:
Naveen Albert
2023-11-10 09:44:25 -05:00
committed by Asterisk Development Team
parent 727a4cceec
commit 76d33df366
2 changed files with 87 additions and 1 deletions

View File

@@ -431,6 +431,10 @@ struct dahdi_pvt {
unsigned int mwimonitoractive:1;
/*! \brief TRUE if a MWI message sending thread is active */
unsigned int mwisendactive:1;
/*! \brief TRUE if a manual MWI override is active for a channel */
unsigned int mwioverride_active:1;
/*! \brief Manual MWI disposition (on/off) */
unsigned int mwioverride_disposition:1;
/*!
* \brief TRUE if channel is out of reset and ready
* \note Used by SS7. Otherwise set but not used.