X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=apps%2Fapp_userevent.c;h=ded039e3fe5254817ca8062665b7c398b1acb3d8;hp=0c44cf25e226e872fd41878734492dd6cc6e5556;hb=0eb4cf8c194d05214677459feb389f63f60c68af;hpb=297feffd4ed67a5b72eb28de0f6c7edcd0edb40d diff --git a/apps/app_userevent.c b/apps/app_userevent.c index 0c44cf2..ded039e 100644 --- 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}", - "type", "userevent", "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; } - msg = ast_channel_blob_create(chan, blob); + msg = ast_channel_blob_create( + chan, ast_channel_user_event_type(), blob); if (!msg) { return -1; }