[Asterisk-cvs] asterisk/apps app_voicemail.c,1.155,1.156

markster at lists.digium.com markster at lists.digium.com
Thu Oct 7 12:06:27 CDT 2004


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

Modified Files:
	app_voicemail.c 
Log Message:
Move voicemail beep (bug #2594)


Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -d -r1.155 -r1.156
--- app_voicemail.c	3 Oct 2004 21:18:26 -0000	1.155
+++ app_voicemail.c	7 Oct 2004 16:07:45 -0000	1.156
@@ -1437,12 +1437,6 @@
 			free_user(vmu);
 			return 0;
 		}
-		if (res >= 0) {
-			/* Unless we're *really* silent, try to send the beep */
-			res = ast_streamfile(chan, "beep", chan->language);
-			if (!res)
-				res = ast_waitstream(chan, "");
-		}
 		if (res < 0) {
 			free_user(vmu);
 			return -1;
@@ -1457,6 +1451,12 @@
 					break;
 				msgnum++;
 			} while (msgnum < MAXMSG);
+			if (res >= 0) {
+				/* Unless we're *really* silent, try to send the beep */
+				res = ast_streamfile(chan, "beep", chan->language);
+				if (!res)
+					res = ast_waitstream(chan, "");
+			}
 			if (msgnum < MAXMSG) {
 				/* Store information */
 				snprintf(txtfile, sizeof(txtfile), "%s.txt", fn);




More information about the svn-commits mailing list