[asterisk-commits] dlee: branch dlee/ASTERISK-21969 r396461 - /team/dlee/ASTERISK-21969/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 8 15:38:29 CDT 2013


Author: dlee
Date: Thu Aug  8 15:38:27 2013
New Revision: 396461

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=396461
Log:
Adding timestampt to StasisStart and StasisEnd

Modified:
    team/dlee/ASTERISK-21969/res/res_stasis.c

Modified: team/dlee/ASTERISK-21969/res/res_stasis.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ASTERISK-21969/res/res_stasis.c?view=diff&rev=396461&r1=396460&r2=396461
==============================================================================
--- team/dlee/ASTERISK-21969/res/res_stasis.c (original)
+++ team/dlee/ASTERISK-21969/res/res_stasis.c Thu Aug  8 15:38:27 2013
@@ -265,8 +265,9 @@
 		return -1;
 	}
 
-	msg = ast_json_pack("{s: s, s: [], s: o}",
+	msg = ast_json_pack("{s: s, s: o, s: [], s: o}",
 		"type", "StasisStart",
+		"timestamp", ast_json_timeval(ast_tvnow(), NULL),
 		"args",
 		"channel", ast_channel_snapshot_to_json(snapshot));
 	if (!msg) {
@@ -302,8 +303,9 @@
 		return -1;
 	}
 
-	msg = ast_json_pack("{s: s, s: o}",
+	msg = ast_json_pack("{s: s, s: o, s: o}",
 		"type", "StasisEnd",
+		"timestamp", ast_json_timeval(ast_tvnow(), NULL),
 		"channel", ast_channel_snapshot_to_json(snapshot));
 	if (!msg) {
 		return -1;




More information about the asterisk-commits mailing list