]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
match dmachine instantly when only 1 binding and its a matching regex
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 4 Jan 2012 17:29:25 +0000 (11:29 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 4 Jan 2012 17:29:29 +0000 (11:29 -0600)
src/switch_ivr_async.c

index ec3d1fa4eed0a4aa50147c32a2edb07c0b4b0eee..1a4ee43ae68c71e834367b6bd306e1c7fe2677f3 100644 (file)
@@ -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;