[asterisk-commits] dlee: branch dlee/ari-event-remodel2 r392400 - in /team/dlee/ari-event-remode...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 21 00:10:37 CDT 2013


Author: dlee
Date: Fri Jun 21 00:10:35 2013
New Revision: 392400

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=392400
Log:
Fixed app_replaced test

Modified:
    team/dlee/ari-event-remodel2/res/res_stasis.c
    team/dlee/ari-event-remodel2/tests/test_res_stasis.c

Modified: team/dlee/ari-event-remodel2/res/res_stasis.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ari-event-remodel2/res/res_stasis.c?view=diff&rev=392400&r1=392399&r2=392400
==============================================================================
--- team/dlee/ari-event-remodel2/res/res_stasis.c (original)
+++ team/dlee/ari-event-remodel2/res/res_stasis.c Fri Jun 21 00:10:35 2013
@@ -635,7 +635,9 @@
 	if (app) {
 		RAII_VAR(struct ast_json *, msg, NULL, ast_json_unref);
 
-		msg = ast_json_pack("{s: s}", "type", "ApplicationReplaced");
+		msg = ast_json_pack("{s: s, s: s}",
+			"type", "ApplicationReplaced",
+			"application", app_name);
 		if (msg) {
 			app_send(app, msg);
 		}

Modified: team/dlee/ari-event-remodel2/tests/test_res_stasis.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ari-event-remodel2/tests/test_res_stasis.c?view=diff&rev=392400&r1=392399&r2=392400
==============================================================================
--- team/dlee/ari-event-remodel2/tests/test_res_stasis.c (original)
+++ team/dlee/ari-event-remodel2/tests/test_res_stasis.c Fri Jun 21 00:10:35 2013
@@ -157,7 +157,9 @@
 
 	stasis_app_register(app_name, test_handler, app_data1);
 	stasis_app_register(app_name, test_handler, app_data2);
-	expected_message1 = ast_json_pack("[{s: {s: s}}]", "application_replaced", "application", app_name);
+	expected_message1 = ast_json_pack("[{s: s, s: s}]",
+		"type", "ApplicationReplaced",
+		"application", app_name);
 	message = ast_json_pack("{ s: o }", "test-message", ast_json_null());
 	expected_message2 = ast_json_pack("[o]", ast_json_ref(message));
 




More information about the asterisk-commits mailing list