]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
(closes issue #13563)
authorSteve Murphy <murf@digium.com>
Fri, 26 Sep 2008 17:47:13 +0000 (17:47 +0000)
committerSteve Murphy <murf@digium.com>
Fri, 26 Sep 2008 17:47:13 +0000 (17:47 +0000)
Reported by: mnicholson
Patches:
      found1.diff uploaded by mnicholson (license 96)

This patch was mainly meant to apply to trunk and 1.6.x,
but I'm applying it to 1.4 also, which should be a perfectly
harmless fix to the vast majority of users who are not using
external switches, but the few who might be affected
will not have to go to the pain of filing a bug report.

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

main/pbx.c

index b9bdc9ba5017e0e4b47f5473a3f3a2b68a3d3624..3d820ec5c7f19a5870ef0d014f9d1f58b8ed1245 100644 (file)
@@ -1862,6 +1862,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;