[asterisk-commits] jpeeler: trunk r298686 - in /trunk: ./ apps/app_voicemail.c

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


Author: jpeeler
Date: Thu Dec 16 17:33:17 2010
New Revision: 298686

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=298686
Log:
Merged revisions 298685 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r298685 | jpeeler | 2010-12-16 17:31:50 -0600 (Thu, 16 Dec 2010) | 16 lines
  
  Merged revisions 298684 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r298684 | jpeeler | 2010-12-16 17:30:59 -0600 (Thu, 16 Dec 2010) | 9 lines
    
    Merged revisions 298683 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r298683 | jpeeler | 2010-12-16 17:29:30 -0600 (Thu, 16 Dec 2010) | 2 lines
      
      After recording only silence for a voicemail prepending, restore backup files.
    ........
  ................
................

Modified:
    trunk/   (props changed)
    trunk/apps/app_voicemail.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: trunk/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=298686&r1=298685&r2=298686
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Thu Dec 16 17:33:17 2010
@@ -6745,6 +6745,10 @@
 				ast_channel_setoption(chan, AST_OPTION_RXGAIN, &record_gain, sizeof(record_gain), 0);
 
 			cmd = ast_play_and_prepend(chan, NULL, msgfile, 0, vm_fmts, &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