diff options
author | Kinsey Moore <kmoore@digium.com> | 2013-06-13 13:15:56 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2013-06-13 13:15:56 +0000 |
commit | 4f84e48028b8f21babd26b7f0b8c1d375f1c356c (patch) | |
tree | 584e569f685ea7ed662d696793b7442ab8496e47 /main/pbx.c | |
parent | 65c492e851639897d8db79741bdcebc3557ad29d (diff) |
Refactor CEL channel events on top of Stasis-Core
This uses the channel state change events from Stasis-Core to determine
when channel-related CEL events should be raised. Those refactored in
this patch are:
* AST_CEL_CHANNEL_START
* AST_CEL_ANSWER
* AST_CEL_APP_START
* AST_CEL_APP_END
* AST_CEL_HANGUP
* AST_CEL_CHANNEL_END
Retirement of Linked IDs is also refactored.
CEL configuration has been refactored to use the config framework.
Note: Some HANGUP events are not generated correctly because the bridge
layer does not propagate hangupcause/hangupsource information yet.
Review: https://reviewboard.asterisk.org/r/2544/
(closes issue ASTERISK-21563)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@391622 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c index 81fd48d72..2e8c32169 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -1574,14 +1574,12 @@ int pbx_exec(struct ast_channel *c, /*!< Channel */ ast_channel_appl_set(c, app->name); ast_channel_data_set(c, data); - ast_cel_report_event(c, AST_CEL_APP_START, NULL, NULL, NULL); if (app->module) u = __ast_module_user_add(app->module, c); res = app->execute(c, S_OR(data, "")); if (app->module && u) __ast_module_user_remove(app->module, u); - ast_cel_report_event(c, AST_CEL_APP_END, NULL, NULL, NULL); /* restore channel values */ ast_channel_appl_set(c, saved_c_appl); ast_channel_data_set(c, saved_c_data); |