[asterisk-commits] jpeeler: branch 1.4 r298683 - /branches/1.4/apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 16 23:29:34 UTC 2010


Author: jpeeler
Date: Thu Dec 16 17:29:30 2010
New Revision: 298683

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=298683
Log:
After recording only silence for a voicemail prepending, restore backup files.

Modified:
    branches/1.4/apps/app_voicemail.c

Modified: branches/1.4/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=298683&r1=298682&r2=298683
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Thu Dec 16 17:29:30 2010
@@ -5217,6 +5217,10 @@
 				ast_channel_setoption(chan, AST_OPTION_RXGAIN, &record_gain, sizeof(record_gain), 0);
 
 			cmd = ast_play_and_prepend(chan, NULL, msgfile, 0, vmfmts, &prepend_duration, 1, silencethreshold, maxsilence);
+			if (cmd == 'S') {
+				ast_filerename(backup, msgfile, NULL);
+			}
+
 			if (record_gain)
 				ast_channel_setoption(chan, AST_OPTION_RXGAIN, &zero_gain, sizeof(zero_gain), 0);
 




More information about the asterisk-commits mailing list