Merged revisions 144677 via svnmerge from
[asterisk/asterisk.git] / main / pbx.c
index af3090c..4fff74b 100644 (file)
@@ -3188,6 +3188,8 @@ static int pbx_extension_helper(struct ast_channel *c, struct ast_context *con,
                        return pbx_exec(c, app, passdata);      /* 0 on success, -1 on failure */
                }
        } else if (q.swo) {     /* not found here, but in another switch */
+               if (found)
+                       *found = 1;
                ast_unlock_contexts();
                if (matching_action) {
                        return -1;