AMI: Add AMI event to expose hook flash events

Although Asterisk can receive and propogate flash events, it currently
provides no mechanism for doing anything with them itself.

This AMI event allows flash events to be processed by Asterisk.
Additionally, AST_CONTROL_FLASH is included in a switch statement
in channel.c to avoid throwing a warning when we shouldn't.

ASTERISK-29380

Change-Id: Ie17ffe65086e0282c88542e38eed6a461ec79e81
This commit is contained in:
Naveen Albert
2021-05-13 11:32:06 -04:00
committed by Joshua Colp
parent 859cd2a56b
commit ea117be4c6
7 changed files with 44 additions and 0 deletions

View File

@@ -416,6 +416,13 @@ struct stasis_message_type *ast_channel_dtmf_begin_type(void);
*/
struct stasis_message_type *ast_channel_dtmf_end_type(void);
/*!
* \brief Message type for when a hook flash occurs on a channel.
*
* \retval A stasis message type
*/
struct stasis_message_type *ast_channel_flash_type(void);
/*!
* \since 12
* \brief Message type for when a channel is placed on hold.