From: Anthony Minessale Date: Thu, 19 Jan 2012 21:13:15 +0000 (-0600) Subject: FS-3760 revert X-Git-Tag: v1.2-rc1~19^2~1^2~32^2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9e7e4d320137443904bc0b49dfd9d14cdc55307;p=thirdparty%2Ffreeswitch.git FS-3760 revert --- diff --git a/src/mod/applications/mod_fifo/mod_fifo.c b/src/mod/applications/mod_fifo/mod_fifo.c index ca889d9efa..91a4a82e4b 100644 --- a/src/mod/applications/mod_fifo/mod_fifo.c +++ b/src/mod/applications/mod_fifo/mod_fifo.c @@ -523,16 +523,13 @@ static switch_status_t caller_read_frame_callback(switch_core_session_t *session char buf[25] = ""; switch_channel_t *channel = switch_core_session_get_channel(session); const char *caller_exit_key = switch_channel_get_variable(channel, "fifo_caller_exit_key"); - switch_status_t status = SWITCH_STATUS_SUCCESS; - args.input_callback = moh_on_dtmf; args.buf = buf; args.buflen = sizeof(buf); args.read_frame_callback = chime_read_frame_callback; args.user_data = user_data; - status = switch_ivr_play_file(session, NULL, cd->list[cd->index], &args); - if (!SWITCH_READ_ACCEPTABLE(status)) { + if (switch_ivr_play_file(session, NULL, cd->list[cd->index], &args) != SWITCH_STATUS_SUCCESS) { return SWITCH_STATUS_BREAK; }