From: Anthony Minessale Date: Sun, 17 Oct 2010 21:13:47 +0000 (-0500) Subject: timeout instantly when you have exact match and are equal to max digits X-Git-Tag: v1.2-rc1~265^2~11^2~156^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81a9f8ef1e216edaece16a765f1dfa98807f02ff;p=thirdparty%2Ffreeswitch.git timeout instantly when you have exact match and are equal to max digits --- 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))) {