From 65f04969a5b356314ac751d76a318f04245b6ff3 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 23 Sep 2008 20:31:49 +0000 Subject: [PATCH] (MODAPP-133) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9627 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_voicemail/mod_voicemail.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 936431f03e..8fc6dd657e 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -1038,7 +1038,7 @@ static switch_status_t create_file(switch_core_session_t *session, vm_profile_t TRY_CODE(switch_ivr_phrase_macro(session, VM_ACK_MACRO, "too-small", NULL, NULL)); goto record_file; } else { - status = SWITCH_STATUS_BREAK; + status = SWITCH_STATUS_NOTFOUND; goto end; } } else { @@ -2676,6 +2676,10 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, cons status = create_file(session, profile, VM_RECORD_MESSAGE_MACRO, file_path, &message_len, SWITCH_TRUE); + if ((status == SWITCH_STATUS_NOTFOUND)) { + goto end; + } + if ((status == SWITCH_STATUS_SUCCESS || status == SWITCH_STATUS_BREAK) && switch_channel_ready(channel)) { char input[10] = "", key_buf[80] = "", term = 0;