diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-11 05:58:11 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-11 05:58:11 +0000 |
commit | ac1806650dadd77cba9e87bd59cc557f34b7ec83 (patch) | |
tree | ec62b1574b909f9a25f29d5c39274be5c4f1c23b /main/pbx.c | |
parent | e989bdfb6d40f0fd8a3ab7df5369d52b539ac39f (diff) |
Check the origination priority for more matches, not the current priority.
Found by Pavel Troller on the -dev list.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@218050 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index d8b7ff33c..c6e4c1bce 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -4628,7 +4628,7 @@ static enum ast_pbx_result __ast_pbx_run(struct ast_channel *c, ast_verb(2, "Spawn extension (%s, %s, %d) exited INCOMPLETE on '%s'\n", c->context, c->exten, c->priority, c->name); /* Don't cycle on incomplete - this will happen if the only extension that matches is our "incomplete" extension */ - if (!ast_matchmore_extension(c, c->context, c->exten, c->priority, c->cid.cid_num)) { + if (!ast_matchmore_extension(c, c->context, c->exten, 1, c->cid.cid_num)) { invalid = 1; } else { ast_copy_string(dst_exten, c->exten, sizeof(dst_exten)); |