[asterisk-commits] tilghman: branch 1.4 r106635 - /branches/1.4/apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Mar 7 10:22:12 CST 2008


Author: tilghman
Date: Fri Mar  7 10:22:11 2008
New Revision: 106635

URL: http://svn.digium.com/view/asterisk?view=rev&rev=106635
Log:
Warn the user when a temporary greeting exists
(Closes issue #11409)

Modified:
    branches/1.4/apps/app_voicemail.c

Modified: branches/1.4/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=106635&r1=106634&r2=106635
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Fri Mar  7 10:22:11 2008
@@ -6125,7 +6125,11 @@
 			cmd = 't';
 			break;
 		default: 
-			cmd = ast_play_and_wait(chan,"vm-options");
+			snprintf(prefile, sizeof(prefile), "%s%s/%s/temp", VM_SPOOL_DIR, vmu->context, vms->username);
+			if (ast_fileexists(prefile, NULL, NULL))
+				cmd = ast_play_and_wait(chan, "vm-tmpexists");
+			if (!cmd)
+				cmd = ast_play_and_wait(chan, "vm-options");
 			if (!cmd)
 				cmd = ast_waitfordigit(chan,6000);
 			if (!cmd)




More information about the asterisk-commits mailing list