]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4023 --resolve makes sense thx
authorAnthony Minessale <anthm@freeswitch.org>
Sat, 24 Mar 2012 00:05:20 +0000 (19:05 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Sat, 24 Mar 2012 00:05:20 +0000 (19:05 -0500)
src/switch_ivr_async.c

index 6e3385ff231e82276909d18c6917bea1a9535f91..17aac4a63f7d6bfed05d46596cfbb554bdb6706b 100644 (file)
@@ -2621,8 +2621,7 @@ static switch_bool_t tone_detect_callback(switch_media_bug_t *bug, void *user_da
        case SWITCH_ABC_TYPE_READ_REPLACE:
        case SWITCH_ABC_TYPE_WRITE_REPLACE:
                {
-                       int skip = 0;
-
+                       
                        if (type == SWITCH_ABC_TYPE_READ_REPLACE) {
                                frame = switch_core_media_bug_get_read_replace_frame(bug);
                        } else {
@@ -2630,6 +2629,7 @@ static switch_bool_t tone_detect_callback(switch_media_bug_t *bug, void *user_da
                        }
 
                        for (i = 0; i < cont->index; i++) {
+                               int skip = 0;
 
                                if (cont->list[i].sleep) {
                                        cont->list[i].sleep--;
@@ -2651,7 +2651,7 @@ static switch_bool_t tone_detect_callback(switch_media_bug_t *bug, void *user_da
                                        skip = 1;
 
                                if (skip)
-                                       return SWITCH_TRUE;
+                                       continue;
 
                                if (teletone_multi_tone_detect(&cont->list[i].mt, frame->data, frame->samples)) {
                                        switch_event_t *event;