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 /apps/app_celgenuserevent.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 'apps/app_celgenuserevent.c')
-rw-r--r-- | apps/app_celgenuserevent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_celgenuserevent.c b/apps/app_celgenuserevent.c index d0331aebe..25065dccb 100644 --- a/apps/app_celgenuserevent.c +++ b/apps/app_celgenuserevent.c @@ -75,9 +75,9 @@ static int celgenuserevent_exec(struct ast_channel *chan, const char *data) parse = ast_strdupa(data); AST_STANDARD_APP_ARGS(args, parse); - blob = ast_json_pack("{s: s, s: s}", + blob = ast_json_pack("{s: s, s: {s: s}}", "event", args.event, - "extra", args.extra); + "extra", "extra", args.extra); if (!blob) { return res; } |