]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
(MODAPP-133) don't try to deliver vm when no file was recorded.
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 22 Sep 2008 16:50:39 +0000 (16:50 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 22 Sep 2008 16:50:39 +0000 (16:50 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9613 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_voicemail/mod_voicemail.c

index db9f1a05fd88aff88f842a298aef32580d951abe..151f3aef36ea79f7c3a76d9eeb225f24ba427359 100644 (file)
@@ -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);