From 0999c9a89184a9a6decd3b43923ba2c5b9f1d3f9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 29 Jan 2009 13:38:58 +0000 Subject: [PATCH] MODAPP-206 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11555 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_fifo/mod_fifo.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_fifo/mod_fifo.c b/src/mod/applications/mod_fifo/mod_fifo.c index f536db75db..d9716c298d 100644 --- a/src/mod/applications/mod_fifo/mod_fifo.c +++ b/src/mod/applications/mod_fifo/mod_fifo.c @@ -208,7 +208,11 @@ static switch_status_t caller_read_frame_callback(switch_core_session_t *session args.input_callback = moh_on_dtmf; args.buf = buf; args.buflen = sizeof(buf); - switch_ivr_play_file(session, NULL, cd->list[cd->index], &args); + + if (switch_ivr_play_file(session, NULL, cd->list[cd->index], &args) != SWITCH_STATUS_SUCCESS) { + return SWITCH_STATUS_FALSE; + } + if (caller_exit_key && *buf == *caller_exit_key) { cd->abort = 1; return SWITCH_STATUS_FALSE;