Fixed some extra field assertion when the event WebSocket is connected

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389343 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
David M. Lee
2013-05-21 14:17:24 +00:00
parent d8aec72494
commit e1e1cc2dee
2 changed files with 3 additions and 6 deletions

View 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) {