From b6f9b398308865fcb2c42995d4277e10ab9518e7 Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Fri, 26 Jul 2013 17:42:08 +0000 Subject: Fix /stasis/res/app_replaced unit test. A typo in recent changes caused the JSON ApplicationReplaced message to fail to build, so the message wasn't being sent out the WebSocket. Related, the replaced application would also unregister itself when it disconnected, which would actually unregister the new application. This was also fixed. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395527 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/stasis/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res/stasis/app.c') diff --git a/res/stasis/app.c b/res/stasis/app.c index dfb6df338..6f80ed64a 100644 --- a/res/stasis/app.c +++ b/res/stasis/app.c @@ -221,7 +221,7 @@ void app_update(struct app *app, stasis_app_cb handler, void *data) msg = ast_json_pack("{s: s, s: s}", "type", "ApplicationReplaced", - "application", app_name); + "application", app->name); if (msg) { app_send(app, msg); } -- cgit v1.2.3