diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-12-19 10:02:19 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-12-19 10:02:19 -0600 |
commit | c7bdffb28180b265f73f541c30d7494ccdecda99 (patch) | |
tree | e26a8ef799aa9f925093f40d1629ef599cb770f5 | |
parent | 1d636f4afa7c9c885f2d7feb03be094155ae05d6 (diff) | |
parent | 5801917a752fffc386dde80c6aa7a79e2ff572c7 (diff) |
Merge "ast_json_pack(): Use safer json ref mechanism." into 13
-rw-r--r-- | main/cel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/cel.c b/main/cel.c index d46f185cf..24d7faa85 100644 --- a/main/cel.c +++ b/main/cel.c @@ -1837,9 +1837,9 @@ void ast_cel_publish_event(struct ast_channel *chan, struct ast_json *cel_blob; struct stasis_message *message; - cel_blob = ast_json_pack("{s: i, s: O}", + cel_blob = ast_json_pack("{s: i, s: o}", "event_type", event_type, - "event_details", blob); + "event_details", ast_json_ref(blob)); message = ast_channel_blob_create_from_cache(ast_channel_uniqueid(chan), cel_generic_type(), cel_blob); if (message) { |