mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-24 11:48:48 +00:00
make exact matches return sooner in dmachine
This commit is contained in:
parent
24febbea8e
commit
e897646e15
@ -284,7 +284,8 @@ static dm_match_t switch_ivr_dmachine_check_match(switch_ivr_dmachine_t *dmachin
|
|||||||
if (dmachine->cur_digit_len == dmachine->max_digit_len) break;
|
if (dmachine->cur_digit_len == dmachine->max_digit_len) break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(both_bp && partial_bp) && !strncmp(dmachine->digits, bp->digits, strlen(dmachine->digits))) {
|
if (!(both_bp && partial_bp) && strlen(bp->digits) != strlen(dmachine->digits) &&
|
||||||
|
!strncmp(dmachine->digits, bp->digits, strlen(dmachine->digits))) {
|
||||||
if (exact_bp) {
|
if (exact_bp) {
|
||||||
best = DM_MATCH_BOTH;
|
best = DM_MATCH_BOTH;
|
||||||
both_bp = bp;
|
both_bp = bp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user