[asterisk-commits] tilghman: trunk r125438 - /trunk/apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 26 12:40:26 CDT 2008


Author: tilghman
Date: Thu Jun 26 12:40:25 2008
New Revision: 125438

URL: http://svn.digium.com/view/asterisk?view=rev&rev=125438
Log:
Don't play "your message has been saved" twice.
(closes issue #12893)
 Reported by: jaroth
 Patches: 
       duplicate_saved.patch uploaded by jaroth (license 50)

Modified:
    trunk/apps/app_voicemail.c

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=125438&r1=125437&r2=125438
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Thu Jun 26 12:40:25 2008
@@ -5394,7 +5394,11 @@
 					res = ast_play_and_wait(chan, "vm-messages");
 				if (!res)
 					res = ast_play_and_wait(chan, "vm-saved"); */
-				res = ast_play_and_wait(chan, "vm-msgsaved");
+
+				/* If forwarded with intro, DON'T PLAY THIS MESSAGE AGAIN! */
+				if (ast_strlen_zero(tmptxtfile)) { /* not a forwarded message with intro */
+					res = ast_play_and_wait(chan, "vm-msgsaved");
+				}
 			}	
 		}
 	}




More information about the asterisk-commits mailing list