aboutsummaryrefslogtreecommitdiffstats
path: root/main/pbx.c
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-15 01:42:12 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-15 01:42:12 +0000
commitf8c27db15adeac53a961a9824086015cbc1f0c02 (patch)
tree354f93a2f83c71f51dd9a5d69b264f3e045a2aa3 /main/pbx.c
parent9aa591bc08a7494c1e12218cfed9d45fb41ce8cc (diff)
Had trouble playing with parking; spent a long time trying to reason out MATCHMORE mode. made these updates and xfers on zaptel lines seem to work ok now
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89277 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 700c4f517..fd914ef4e 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -1586,11 +1586,14 @@ struct ast_exten *pbx_find_extension(struct ast_channel *chan,
return NULL;
}
- if (!eroot && action == E_CANMATCH && score.canmatch_exten) {
+ if (!eroot && (action == E_CANMATCH || action == E_MATCHMORE) && score.canmatch_exten) {
q->status = STATUS_SUCCESS;
return score.canmatch_exten;
}
+ if (action == E_MATCHMORE && eroot)
+ return NULL; /* according to the code, complete matches are null matches in MATCHMORE mode */
+
if (eroot) {
/* found entry, now look for the right priority */
if (q->status < STATUS_NO_PRIORITY)