projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove required type field from channel blobs
[asterisk/asterisk.git]
/
apps
/
app_userevent.c
diff --git
a/apps/app_userevent.c
b/apps/app_userevent.c
index
0c44cf2
..
ded039e
100644
(file)
--- a/
apps/app_userevent.c
+++ b/
apps/app_userevent.c
@@
-93,7
+93,6
@@
static int userevent_exec(struct ast_channel *chan, const char *data)
}
blob = ast_json_pack("{s: s, s: s, s: s}",
}
blob = ast_json_pack("{s: s, s: s, s: s}",
- "type", "userevent",
"eventname", args.eventname,
"body", ast_str_buffer(body));
if (!blob) {
"eventname", args.eventname,
"body", ast_str_buffer(body));
if (!blob) {
@@
-101,7
+100,8
@@
static int userevent_exec(struct ast_channel *chan, const char *data)
return -1;
}
return -1;
}
- msg = ast_channel_blob_create(chan, blob);
+ msg = ast_channel_blob_create(
+ chan, ast_channel_user_event_type(), blob);
if (!msg) {
return -1;
}
if (!msg) {
return -1;
}