]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix regex parsing in dmachine
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 23 Nov 2011 17:00:00 +0000 (11:00 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 23 Nov 2011 17:00:00 +0000 (11:00 -0600)
src/switch_ivr_async.c

index 9f99627827968dacc46bfda303acb95690d46909..a43cadf72f6387bd28ac1fc9ad42276da30f2fd2 100644 (file)
@@ -306,6 +306,7 @@ static dm_match_t switch_ivr_dmachine_check_match(switch_ivr_dmachine_t *dmachin
        for(bp = dmachine->realm->binding_list; bp; bp = bp->next) {
                if (bp->is_regex) {
                        switch_status_t r_status = switch_regex_match(dmachine->digits, bp->digits);
+                       pmatches = 1;
 
                        if (r_status == SWITCH_STATUS_SUCCESS) {
                                if (is_timeout) {
@@ -313,7 +314,6 @@ static dm_match_t switch_ivr_dmachine_check_match(switch_ivr_dmachine_t *dmachin
                                        exact_bp = bp;
                                        break;
                                }
-                               pmatches = 1;
                                best = DM_MATCH_PARTIAL;
                        }
                } else {