diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-26 17:47:13 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-26 17:47:13 +0000 |
commit | 812410612f84f1fce72b6ab706dfc114aa523a0f (patch) | |
tree | 51dec84a85b7dcfca68fbbcb43535016a952db62 /main/pbx.c | |
parent | 48cfb3c6363faa08679c6b24d7596b3bcc7b640b (diff) |
(closes issue #13563)
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: http://svn.digium.com/svn/asterisk/branches/1.4@144677 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c index b9bdc9ba5..3d820ec5c 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -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; |