[asterisk-commits] sgriepentrog: branch sgriepentrog/12-userevent r413027 - /team/sgriepentrog/1...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Apr 25 16:44:55 CDT 2014
Author: sgriepentrog
Date: Fri Apr 25 16:44:50 2014
New Revision: 413027
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=413027
Log:
userevent: fixed json ref problems
Modified:
team/sgriepentrog/12-userevent/main/stasis_user.c
Modified: team/sgriepentrog/12-userevent/main/stasis_user.c
URL: http://svnview.digium.com/svn/asterisk/team/sgriepentrog/12-userevent/main/stasis_user.c?view=diff&rev=413027&r1=413026&r2=413027
==============================================================================
--- team/sgriepentrog/12-userevent/main/stasis_user.c (original)
+++ team/sgriepentrog/12-userevent/main/stasis_user.c Fri Apr 25 16:44:50 2014
@@ -262,7 +262,7 @@
ast_json_object_set(out, "type", ast_json_string_create("ChannelUserevent"));
ast_json_object_set(out, "timestamp", ast_json_timeval(*tv, NULL));
- ast_json_object_set(out, "eventname", ast_json_object_get(blob, "eventname"));
+ ast_json_object_set(out, "eventname", ast_json_ref(ast_json_object_get(blob, "eventname")));
ast_json_object_set(out, "userevent", ast_json_ref(blob)); /* eventname gets duplicated, that's ok */
it_snapshots = ao2_iterator_init(multi->object_snapshots, 0);
More information about the asterisk-commits
mailing list