]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3080 --resolve only allow when not playing message
authorJeff Lenk <jeff@jefflenk.com>
Fri, 19 Aug 2011 19:29:23 +0000 (14:29 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Fri, 19 Aug 2011 19:29:23 +0000 (14:29 -0500)
src/mod/applications/mod_voicemail/mod_voicemail.c

index 6fc16465d7fe3682130bcbcaa3613cae828a0237..d21fb47ad8e31da7df2c48b98319eb0ce4227ca8 100644 (file)
@@ -1568,9 +1568,11 @@ static switch_status_t listen_file(switch_core_session_t *session, vm_profile_t
                        *cc.buf = '\0';
                        memset(&fh, 0, sizeof(fh));
                        cc.fh = &fh;
+                       cc.noexit = 1;
                        if (switch_file_exists(cbt->file_path, switch_core_session_get_pool(session)) == SWITCH_STATUS_SUCCESS) {
                                TRY_CODE(switch_ivr_play_file(session, &fh, cbt->file_path, &args));
                        }
+                       cc.noexit = 0;
                }
 
                if (!*cc.buf && (profile->play_date_announcement == VM_DATE_LAST)) {