summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/pbx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c
index af3090cdf..4fff74b10 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -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;