diff options
author | Kinsey Moore <kmoore@digium.com> | 2013-07-20 13:10:22 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2013-07-20 13:10:22 +0000 |
commit | 684c83b29b88d219aa406d0aa1673ee338c9159d (patch) | |
tree | fb558b8a1f3aad37ad816d371d805c76f9476431 /main/features.c | |
parent | 4e15046cf6446e5f5acca0f4faccc9678e96836a (diff) |
Add transfer support to CEL
This adds CEL support for blind and attended transfers and call pickup.
During the course of adding this functionality I noticed that
CONF_ENTER, CONF_EXIT, and BRIDGE_TO_CONF events are particularly
useless without a bridge identifier, so I added that as well.
This adds tests for blind transfers, several types of attended
transfers, and call pickup.
The extra field in CEL records now consists of a JSON blob whose fields
are defined on a per-event basis.
Review: https://reviewboard.asterisk.org/r/2658/
(closes issue ASTERISK-21565)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/features.c')
-rw-r--r-- | main/features.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/main/features.c b/main/features.c index fd72b9cb2..928a81e94 100644 --- a/main/features.c +++ b/main/features.c @@ -70,7 +70,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/audiohook.h" #include "asterisk/global_datastores.h" #include "asterisk/astobj2.h" -#include "asterisk/cel.h" #include "asterisk/test.h" #include "asterisk/bridging.h" #include "asterisk/bridging_basic.h" @@ -2553,8 +2552,6 @@ static int builtin_atxfer(struct ast_channel *chan, struct ast_channel *peer, st } /* Initiate the channel transfer of party A to party C (or recalled party B). */ - ast_cel_report_event(transferee, AST_CEL_ATTENDEDTRANSFER, NULL, NULL, newchan); - xferchan = ast_channel_alloc(0, AST_STATE_DOWN, 0, 0, "", "", "", ast_channel_linkedid(transferee), 0, "Transfered/%s", ast_channel_name(transferee)); if (!xferchan) { ast_autoservice_chan_hangup_peer(transferee, newchan); @@ -4739,8 +4736,6 @@ int ast_do_pickup(struct ast_channel *chan, struct ast_channel *target) ast_channel_unlock(chan); connected_caller.source = AST_CONNECTED_LINE_UPDATE_SOURCE_ANSWER; - ast_cel_report_event(target, AST_CEL_PICKUP, NULL, NULL, chan); - if (ast_answer(chan)) { ast_log(LOG_WARNING, "Unable to answer '%s'\n", chan_name); goto pickup_failed; |