feat: ARI "ChannelToneDetected" event

A stasis event is now produced when using the TONE_DETECT dialplan
function. This event is published over ARI using the ChannelToneDetected
event. This change does not make it available over AMI.

Fixes: #811

UserNote: Setting the TONE_DETECT dialplan function on a channel
in ARI will now cause a ChannelToneDetected ARI event to be raised
when the specified tone is detected.
This commit is contained in:
gibbz00
2024-07-18 12:13:25 +02:00
committed by asterisk-org-access-app[bot]
parent 0f67c2696f
commit 99a5064a07
8 changed files with 169 additions and 0 deletions

View File

@@ -656,6 +656,14 @@ struct stasis_message_type *ast_channel_talking_start(void);
*/
struct stasis_message_type *ast_channel_talking_stop(void);
/*!
* \since 22.0.0
* \brief Message type for a channel tone detection
*
* \return A stasis message type
*/
struct stasis_message_type *ast_channel_tone_detect(void);
/*!
* \since 12
* \brief Publish in the \ref ast_channel_topic or \ref ast_channel_topic_all