From 32c73c082579330a16a654639938324524a2b74b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 3 Feb 2012 11:05:22 -0600 Subject: [PATCH] FS-3873 --resolve cool someone is finally testing it --- src/mod/applications/mod_httapi/mod_httapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_httapi/mod_httapi.c b/src/mod/applications/mod_httapi/mod_httapi.c index ab674cce46..4a42aec823 100644 --- a/src/mod/applications/mod_httapi/mod_httapi.c +++ b/src/mod/applications/mod_httapi/mod_httapi.c @@ -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; }