]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3760 --resolve
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Tue, 13 Dec 2011 23:33:09 +0000 (18:33 -0500)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Tue, 13 Dec 2011 23:33:09 +0000 (18:33 -0500)
src/mod/applications/mod_fifo/mod_fifo.c

index 91a4a82e4b8c2582284cddcc29e33b11c507df36..ca889d9efa4312af2c2cd7b86e601bd8b8845506 100644 (file)
@@ -523,13 +523,16 @@ 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;
 
-                       if (switch_ivr_play_file(session, NULL, cd->list[cd->index], &args) != SWITCH_STATUS_SUCCESS) {
+                       status = switch_ivr_play_file(session, NULL, cd->list[cd->index], &args);
+                       if (!SWITCH_READ_ACCEPTABLE(status)) {
                                return SWITCH_STATUS_BREAK;
                        }