[asterisk-commits] tilghman: trunk r106654 - in /trunk: ./ apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Mar 7 10:26:07 CST 2008
Author: tilghman
Date: Fri Mar 7 10:26:07 2008
New Revision: 106654
URL: http://svn.digium.com/view/asterisk?view=rev&rev=106654
Log:
Merged revisions 106635 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r106635 | tilghman | 2008-03-07 10:22:11 -0600 (Fri, 07 Mar 2008) | 3 lines
Warn the user when a temporary greeting exists
(Closes issue #11409)
........
Modified:
trunk/ (props changed)
trunk/apps/app_voicemail.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=106654&r1=106653&r2=106654
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Fri Mar 7 10:26:07 2008
@@ -6607,13 +6607,22 @@
cmd = 't';
break;
default:
- cmd = ast_play_and_wait(chan, "vm-options");
- if (!cmd)
+ 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)
+ }
+ if (!cmd) {
retries++;
- if (retries > 3)
+ }
+ if (retries > 3) {
cmd = 't';
+ }
}
}
if (cmd == 't')
More information about the asterisk-commits
mailing list