timeout instantly when you have exact match and are equal to max digits

This commit is contained in:
Anthony Minessale 2010-10-17 16:13:47 -05:00
parent dc40a7789c
commit 81a9f8ef1e
1 changed files with 1 additions and 0 deletions

View File

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