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))) {