From: Anthony Minessale Date: Wed, 4 Jan 2012 17:29:25 +0000 (-0600) Subject: match dmachine instantly when only 1 binding and its a matching regex X-Git-Tag: v1.2-rc1~19^2~1^2~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bebf3028d87cfcfbf094373e83ef92a391049d1f;p=thirdparty%2Ffreeswitch.git match dmachine instantly when only 1 binding and its a matching regex --- diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index ec3d1fa4ee..1a4ee43ae6 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -309,7 +309,7 @@ static dm_match_t switch_ivr_dmachine_check_match(switch_ivr_dmachine_t *dmachin pmatches = 1; if (r_status == SWITCH_STATUS_SUCCESS) { - if (is_timeout) { + if (is_timeout || (bp == dmachine->realm->binding_list && !bp->next)) { best = DM_MATCH_EXACT; exact_bp = bp; break;