stasis: Fixed scoping problem with bridge tracking.
authorDavid M. Lee <dlee@digium.com>
Thu, 21 Nov 2013 15:57:40 +0000 (15:57 +0000)
committerDavid M. Lee <dlee@digium.com>
Thu, 21 Nov 2013 15:57:40 +0000 (15:57 +0000)
........

Merged revisions 402817 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402929 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_stasis.c

index 8fe4ab4..e5fe1f6 100644 (file)
@@ -704,6 +704,7 @@ int stasis_app_exec(struct ast_channel *chan, const char *app_name, int argc,
 
        RAII_VAR(struct app *, app, NULL, ao2_cleanup);
        RAII_VAR(struct stasis_app_control *, control, NULL, control_unlink);
+       struct ast_bridge *last_bridge = NULL;
        int res = 0;
 
        ast_assert(chan != NULL);
@@ -745,7 +746,6 @@ int stasis_app_exec(struct ast_channel *chan, const char *app_name, int argc,
                RAII_VAR(struct ast_frame *, f, NULL, ast_frame_dtor);
                int r;
                int command_count;
-               struct ast_bridge *last_bridge = NULL;
                struct ast_bridge *bridge = NULL;
 
                /* Check to see if a bridge absorbed our hangup frame */