[svn-commits] trunk - r7978 /trunk/apps/app_voicemail.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Wed Jan 11 01:21:17 CST 2006
Author: russell
Date: Wed Jan 11 01:21:16 2006
New Revision: 7978
URL: http://svn.digium.com/view/asterisk?rev=7978&view=rev
Log:
fix temp greetings with odbc storage (issue #6078)
Modified:
trunk/apps/app_voicemail.c
Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?rev=7978&r1=7977&r2=7978&view=diff
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Wed Jan 11 01:21:16 2006
@@ -4742,6 +4742,7 @@
while (cmd >= 0 && cmd != 't') {
if (cmd)
retries = 0;
+ RETRIEVE(prefile, -1);
if (ast_fileexists(prefile, NULL, NULL) <= 0) {
play_record_review(chan, "vm-rec-temp", prefile, maxgreet, fmtc, 0, vmu, &duration, NULL, record_gain);
cmd = 't';
@@ -4751,7 +4752,7 @@
cmd = play_record_review(chan, "vm-rec-temp", prefile, maxgreet, fmtc, 0, vmu, &duration, NULL, record_gain);
break;
case '2':
- ast_filedelete(prefile, NULL);
+ DELETE(prefile, -1, prefile);
ast_play_and_wait(chan, "vm-tempremoved");
cmd = 't';
break;
@@ -4770,6 +4771,7 @@
cmd = 't';
}
}
+ DISPOSE(prefile, -1);
}
if (cmd == 't')
cmd = 0;
More information about the svn-commits
mailing list