From e61d0c7f4f878c71d137e9cfe319ba440516546e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 26 Aug 2008 15:40:30 +0000 Subject: [PATCH] fix one of the issues from MODAPP-133 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9366 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_voicemail/mod_voicemail.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index f3f1b88cac..325a92d255 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -1867,9 +1867,11 @@ static void deliver_vm(vm_profile_t *profile, } else if (!strcasecmp(var, "email-addr")) { email_addr = switch_core_strdup(pool, val); } else if (!strcasecmp(var, "vm-email-all-messages")) { - send_main = send_mail = switch_true(val); + send_main = switch_true(val); + send_mail++; } else if (!strcasecmp(var, "vm-notify-email-all-messages")) { - send_notify = send_mail = switch_true(val); + send_notify = witch_true(val); + send_mail++; } else if (!strcasecmp(var, "vm-keep-local-after-email")) { insert_db = switch_true(val); } else if (!strcasecmp(var, "vm-attach-file")) { @@ -2310,9 +2312,11 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, cons } else if (!strcasecmp(var, "email-addr")) { email_addr = switch_core_session_strdup(session, val); } else if (!strcasecmp(var, "vm-email-all-messages")) { - send_main = send_mail = switch_true(val); + send_main = switch_true(val); + send_mail++; } else if (!strcasecmp(var, "vm-notify-email-all-messages")) { - send_notify = send_mail = switch_true(val); + send_notify = switch_true(val); + send_mail++; } else if (!strcasecmp(var, "vm-keep-local-after-email")) { insert_db = switch_true(val); } else if (!strcasecmp(var, "vm-attach-file")) {