Fixed some extra field assertion when the event WebSocket is connected
authorDavid M. Lee <dlee@digium.com>
Tue, 21 May 2013 14:17:24 +0000 (14:17 +0000)
committerDavid M. Lee <dlee@digium.com>
Tue, 21 May 2013 14:17:24 +0000 (14:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389343 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_userevent.c
main/stasis_channels.c

index b2dbb13..fe037e2 100644 (file)
@@ -87,8 +87,7 @@ static int userevent_exec(struct ast_channel *chan, const char *data)
 
        AST_STANDARD_APP_ARGS(args, parse);
 
-       blob = ast_json_pack("{s: s, s: s}",
-                            "type", "userevent",
+       blob = ast_json_pack("{s: s}",
                             "eventname", args.eventname);
        if (!blob) {
                return -1;
index 95f5f9d..0b2ccbc 100644 (file)
@@ -174,8 +174,7 @@ void ast_channel_publish_dial(struct ast_channel *caller, struct ast_channel *pe
        struct ast_channel_snapshot *peer_snapshot;
 
        ast_assert(peer != NULL);
-       blob = ast_json_pack("{s: s, s: s, s: s}",
-                            "type", "dial",
+       blob = ast_json_pack("{s: s, s: s}",
                             "dialstatus", S_OR(dialstatus, ""),
                             "dialstring", S_OR(dialstring, ""));
        if (!blob) {
@@ -398,8 +397,7 @@ void ast_channel_publish_varset(struct ast_channel *chan, const char *name, cons
        ast_assert(name != NULL);
        ast_assert(value != NULL);
 
-       blob = ast_json_pack("{s: s, s: s, s: s}",
-                            "type", "varset",
+       blob = ast_json_pack("{s: s, s: s}",
                             "variable", name,
                             "value", value);
        if (!blob) {