From 81a9f8ef1e216edaece16a765f1dfa98807f02ff Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sun, 17 Oct 2010 16:13:47 -0500 Subject: [PATCH] timeout instantly when you have exact match and are equal to max digits --- src/switch_ivr_async.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index 964a77ec79..7959d319ab 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -281,6 +281,7 @@ static dm_match_t switch_ivr_dmachine_check_match(switch_ivr_dmachine_t *dmachin if (!exact_bp && !strcmp(bp->digits, dmachine->digits)) { best = DM_MATCH_EXACT; exact_bp = bp; + if (dmachine->cur_digit_len == dmachine->max_digit_len) break; } if (!(both_bp && partial_bp) && !strncmp(dmachine->digits, bp->digits, strlen(dmachine->digits))) {