From cc10211ab3a10c4d2ea5dfc85d8c49cdc6d9c417 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 22 Sep 2008 16:50:39 +0000 Subject: [PATCH] (MODAPP-133) don't try to deliver vm when no file was recorded. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9613 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_voicemail/mod_voicemail.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index db9f1a05fd..151f3aef36 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -1039,7 +1039,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, "deleted", NULL, NULL)); goto record_file; } else { - status = SWITCH_STATUS_BREAK; + status = SWITCH_STATUS_FALSE; goto end; } } else { @@ -2690,6 +2690,8 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, cons } else { TRY_CODE(switch_ivr_phrase_macro(session, VM_ACK_MACRO, "saved", NULL, NULL)); } + } else { + goto end; } switch_channel_get_variables(channel, &vars);