From: Marc Olivier Chouinard Date: Fri, 1 Jun 2012 03:36:37 +0000 (-0400) Subject: mod_voicemail: Remove the Goodbye prompt when voicemail is disabled when trying to... X-Git-Tag: v1.2.0~290^2~9^2~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2d183099f23a70655bfee7f0ea33e1166b64e4a;p=thirdparty%2Ffreeswitch.git mod_voicemail: Remove the Goodbye prompt when voicemail is disabled when trying to leave a message --- diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 0bbea275d5..d3438aacfc 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -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); }