mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 15:08:53 +00:00
Check the origination priority for more matches, not the current priority.
Found by Pavel Troller on the -dev list. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@218050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
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 */
|
/* 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;
|
invalid = 1;
|
||||||
} else {
|
} else {
|
||||||
ast_copy_string(dst_exten, c->exten, sizeof(dst_exten));
|
ast_copy_string(dst_exten, c->exten, sizeof(dst_exten));
|
||||||
|
Reference in New Issue
Block a user