diff options
author | Kinsey Moore <kmoore@digium.com> | 2013-08-22 17:13:16 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2013-08-22 17:13:16 +0000 |
commit | 20dcc49d2ef6f429afb9b495f55045f65c7047eb (patch) | |
tree | e268fdada17ec0ae0c4465546f5b0a38efd4e830 /include/asterisk/cel.h | |
parent | 641748cc1be20f439144f168c55e1a8a80d0402e (diff) |
Make CEL behavior conform to the documentation
This modifies the behavior of the CEL engine to conform to documented
behavior for Asterisk 12 as defined on the wiki
https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+CEL+Specification
The primary changes deal with removal of the peer field from function
calls since it is no longer directly relevant to the bridging system
and removal of the layer of CDR-like business logic that was providing
a partial emulation of Asterisk 11 CEL functionality. With this change,
there is no longer a distinction between "bridges" and "conferences"
and all participation changes are denoted with bridge enter and bridge
exit messages.
This updates the CEL unit tests to handle these changes and simplifies
some of the macros used in the process.
This also fixes a segfault when attempting to ref a configuration that
failed to load.
Review: https://reviewboard.asterisk.org/r/2788/
(issue ASTERISK-21567)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/cel.h')
-rw-r--r-- | include/asterisk/cel.h | 45 |
1 files changed, 14 insertions, 31 deletions
diff --git a/include/asterisk/cel.h b/include/asterisk/cel.h index 62644d2fb..5850edc21 100644 --- a/include/asterisk/cel.h +++ b/include/asterisk/cel.h @@ -51,44 +51,28 @@ enum ast_cel_event_type { AST_CEL_APP_START = 5, /*! \brief an app ends */ AST_CEL_APP_END = 6, - /*! \brief a bridge is established */ - AST_CEL_BRIDGE_START = 7, - /*! \brief a bridge is torn down */ - AST_CEL_BRIDGE_END = 8, - /*! \brief a conference is started */ - AST_CEL_CONF_START = 9, - /*! \brief a conference is ended */ - AST_CEL_CONF_END = 10, + /*! \brief channel enters a bridge */ + AST_CEL_BRIDGE_ENTER = 7, + /*! \brief channel exits a bridge */ + AST_CEL_BRIDGE_EXIT = 8, /*! \brief a channel is parked */ - AST_CEL_PARK_START = 11, + AST_CEL_PARK_START = 9, /*! \brief channel out of the park */ - AST_CEL_PARK_END = 12, + AST_CEL_PARK_END = 10, /*! \brief a transfer occurs */ - AST_CEL_BLINDTRANSFER = 13, + AST_CEL_BLINDTRANSFER = 11, /*! \brief a transfer occurs */ - AST_CEL_ATTENDEDTRANSFER = 14, - /*! \brief a 3-way conference, usually part of a transfer */ - AST_CEL_HOOKFLASH = 16, - /*! \brief a 3-way conference, usually part of a transfer */ - AST_CEL_3WAY_START = 17, - /*! \brief a 3-way conference, usually part of a transfer */ - AST_CEL_3WAY_END = 18, - /*! \brief channel enters a conference */ - AST_CEL_CONF_ENTER = 19, - /*! \brief channel exits a conference */ - AST_CEL_CONF_EXIT = 20, + AST_CEL_ATTENDEDTRANSFER = 12, /*! \brief a user-defined event, the event name field should be set */ - AST_CEL_USER_DEFINED = 21, + AST_CEL_USER_DEFINED = 13, /*! \brief the last channel with the given linkedid is retired */ - AST_CEL_LINKEDID_END = 22, + AST_CEL_LINKEDID_END = 14, /*! \brief a directed pickup was performed on this channel */ - AST_CEL_PICKUP = 24, + AST_CEL_PICKUP = 15, /*! \brief this call was forwarded somewhere else */ - AST_CEL_FORWARD = 25, - /*! \brief a bridge turned into a conference and will be treated as such until it is torn down */ - AST_CEL_BRIDGE_TO_CONF = 26, + AST_CEL_FORWARD = 16, /*! \brief A local channel optimization occurred */ - AST_CEL_LOCAL_OPTIMIZE = 27, + AST_CEL_LOCAL_OPTIMIZE = 17, }; /*! @@ -289,7 +273,6 @@ struct ast_channel_snapshot; * \param userdefevname Custom name for the call event. (optional) * \param extra An event-specific opaque JSON blob to be rendered and placed * in the "CEL_EXTRA" information element of the call event. (optional) - * \param peer_name The peer name to be placed into the event. (optional) * * \since 12 * @@ -298,7 +281,7 @@ struct ast_channel_snapshot; */ struct ast_event *ast_cel_create_event(struct ast_channel_snapshot *snapshot, enum ast_cel_event_type event_type, const char *userdefevname, - struct ast_json *extra, const char *peer_name); + struct ast_json *extra); /*! * \brief CEL backend callback |