[Freeswitch-svn] [commit] r9366 - freeswitch/trunk/src/mod/applications/mod_voicemail

Freeswitch SVN anthm at freeswitch.org
Tue Aug 26 11:40:31 EDT 2008


Author: anthm
Date: Tue Aug 26 11:40:30 2008
New Revision: 9366

Modified:
   freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c

Log:
fix one of the issues from MODAPP-133

Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	Tue Aug 26 11:40:30 2008
@@ -1867,9 +1867,11 @@
 		} 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 @@
 					} 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")) {



More information about the Freeswitch-svn mailing list