[svn-commits] mmichelson: branch 1.4 r68198 - /branches/1.4/apps/app_voicemail.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Jun 7 12:47:42 MST 2007


Author: mmichelson
Date: Thu Jun  7 14:47:42 2007
New Revision: 68198

URL: http://svn.digium.com/view/asterisk?view=rev&rev=68198
Log:
Submitting a fix for Issue 8016. Added a check to make sure that greetings get stored properly.
(Issue 8016, reported by edhorton, patched by alamantia with modification by me. Thanks to Jason Parker
for the advice on this).


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=68198&r1=68197&r2=68198
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Thu Jun  7 14:47:42 2007
@@ -8067,8 +8067,11 @@
 				if (option_verbose > 2)
 					ast_verbose(VERBOSE_PREFIX_3 "Saving message as is\n");
 				ast_stream_and_wait(chan, "vm-msgsaved", chan->language, "");
-				STORE(recordfile, vmu->mailbox, vmu->context, -1, chan, vmu, fmt, *duration, vms);
-				DISPOSE(recordfile, -1);
+				if (!outsidecaller)
+				{
+					STORE(recordfile, vmu->mailbox, vmu->context, -1, chan, vmu, fmt, *duration, vms);
+					DISPOSE(recordfile, -1);
+				}
 				cmd = 't';
 				return res;
 			}



More information about the svn-commits mailing list