]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_voicemail: Remove the Goodbye prompt when voicemail is disabled when trying to...
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Fri, 1 Jun 2012 03:36:37 +0000 (23:36 -0400)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Fri, 1 Jun 2012 03:36:37 +0000 (23:36 -0400)
src/mod/applications/mod_voicemail/mod_voicemail.c

index 0bbea275d56c1b0ff591fd92762742548c4c5a33..d3438aacfc5a3c901d0f6248b996381a2685f1b1 100644 (file)
@@ -3489,7 +3489,7 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, vm_p
 
        switch_safe_free(file_path);
 
-       if (switch_channel_ready(channel)) {
+       if (switch_channel_ready(channel) && vm_enabled) {
                status = switch_ivr_phrase_macro(session, VM_GOODBYE_MACRO, NULL, NULL, NULL);
        }