[Asterisk-cvs] asterisk/apps app_voicemail.c,1.74,1.75

malcolmd at lists.digium.com malcolmd at lists.digium.com
Wed Apr 7 12:16:22 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv1689/apps

Modified Files:
	app_voicemail.c 
Log Message:
More changes to Matt's application


Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- app_voicemail.c	6 Apr 2004 22:17:31 -0000	1.74
+++ app_voicemail.c	7 Apr 2004 16:16:56 -0000	1.75
@@ -1574,6 +1574,7 @@
 		snprintf(arguments, sizeof(arguments)-1, " %s %s %d&", chan->context, ext, ast_app_has_voicemail(ext));
 		strncat(tmp, arguments, sizeof(tmp) - strlen(arguments));
 		tmp[sizeof(tmp) - 1] = '\0';
+//		ast_verbose(VERBOSE_PREFIX_3,"Executing %s\n", tmp);
 		ast_safe_system(tmp);
 	}
 
@@ -2376,11 +2377,11 @@
 		manager_event(EVENT_FLAG_CALL, "MessageWaiting", "Mailbox: %s\r\nWaiting: %d\r\n", vmtmp->mailbox, ast_app_has_voicemail(vmtmp->mailbox));
 		if (externnotify[0]) {
 			char arguments[255];
-			ast_log(LOG_DEBUG, "Running external notify program from vm_execmain\n");
 			strncpy(tmp, externnotify, sizeof(tmp));
 			snprintf(arguments, sizeof(arguments)-1, " %s %s %d&", chan->context, vmtmp->mailbox, ast_app_has_voicemail(vmtmp->mailbox));
 			strncat(tmp, arguments, sizeof(tmp) - strlen(arguments));
 			tmp[sizeof(tmp) - 1] = '\0';
+		//	ast_verbose(VERBOSE_PREFIX_3, "executing %s\n", tmp);
 			ast_safe_system(tmp);
 		}
 
@@ -3036,11 +3037,11 @@
 		manager_event(EVENT_FLAG_CALL, "MessageWaiting", "Mailbox: %s\r\nWaiting: %d\r\n", vms.username, ast_app_has_voicemail(vms.username));
 		if (externnotify[0]) {
 			char arguments[255];
-			ast_log(LOG_DEBUG, "Running external notify program from vm_execmain\n");
 			strncpy(tmp, externnotify, sizeof(tmp));
 			snprintf(arguments, sizeof(arguments)-1, " %s %s %d&", chan->context, vms.username, ast_app_has_voicemail(vms.username));
 			strncat(tmp, arguments, sizeof(tmp) - strlen(arguments));
 			tmp[sizeof(tmp) - 1] = '\0';
+		//	ast_verbose(VERBOSE_PREFIX_3, "executing: %s\n");
 			ast_safe_system(tmp);
 		}
 	}
@@ -3350,6 +3351,7 @@
 		
 		if ((notifystr = ast_variable_retrieve(cfg, "general", "externnotify"))) {
 			strncpy(externnotify, notifystr, sizeof(externnotify) - 1);
+			//ast_verbose(VERBOSE_PREFIX_3, "found externnotify: %s\n", externnotify);
 		} else {
 			externnotify[0] = '\0';
 		}




More information about the svn-commits mailing list