]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3873 --resolve cool someone is finally testing it
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 3 Feb 2012 17:05:22 +0000 (11:05 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 3 Feb 2012 17:05:22 +0000 (11:05 -0600)
src/mod/applications/mod_httapi/mod_httapi.c

index ab674cce466d6c50b0e759abb8e0bea9c7c7f2f7..4a42aec8236a81a52510f9fee8904a6b9a81ed0a 100644 (file)
@@ -545,7 +545,7 @@ static switch_status_t parse_playback(const char *tag_name, client_t *client, sw
 
                if (input_timeout && status == SWITCH_STATUS_SUCCESS) {
                        if ((status = switch_ivr_sleep(client->session, input_timeout, SWITCH_TRUE, args)) == SWITCH_STATUS_SUCCESS) {
-                               status = SWITCH_STATUS_BREAK;
+                               status = (input || !pause) ? SWITCH_STATUS_BREAK : SWITCH_STATUS_SUCCESS;
                        }
                }
 
@@ -622,7 +622,7 @@ static switch_status_t parse_playback(const char *tag_name, client_t *client, sw
        if (dmachine) {
                switch_ivr_dmachine_destroy(&dmachine);
        }
-
+       printf("WTF %d\n", status);
        return status;
 }