mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
cel: add publish user event helper
Add a wrapper function around ast_cel_publish_event that
packs event and extras into a blob before publishing
Resolves:#330
(cherry picked from commit 4592f97c36
)
This commit is contained in:
committed by
Asterisk Development Team
parent
d01b047de3
commit
f9efc9c681
@@ -195,6 +195,22 @@ void ast_cel_publish_event(struct ast_channel *chan,
|
||||
enum ast_cel_event_type event_type,
|
||||
struct ast_json *blob);
|
||||
|
||||
/*!
|
||||
* \brief Publish a CEL user event
|
||||
* \since 18
|
||||
*
|
||||
* \note
|
||||
* This serves as a wrapper function around ast_cel_publish_event() to help pack the
|
||||
* extra details before publishing.
|
||||
*
|
||||
* \param chan This is the primary channel associated with this channel event.
|
||||
* \param event This is the user event being reported.
|
||||
* \param extra This contains any extra parameters that need to be conveyed for this event.
|
||||
*/
|
||||
void ast_cel_publish_user_event(struct ast_channel *chan,
|
||||
const char *event,
|
||||
const char *extra);
|
||||
|
||||
/*!
|
||||
* \brief Get the CEL topic
|
||||
*
|
||||
|
Reference in New Issue
Block a user