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. ........ ................ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@298686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
6c0b904d17
commit
6765970cd2
1 changed files with 4 additions and 0 deletions
|
@ -6745,6 +6745,10 @@ static int vm_forwardoptions(struct ast_channel *chan, struct ast_vm_user *vmu,
|
||||||
ast_channel_setoption(chan, AST_OPTION_RXGAIN, &record_gain, sizeof(record_gain), 0);
|
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);
|
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)
|
if (record_gain)
|
||||||
ast_channel_setoption(chan, AST_OPTION_RXGAIN, &zero_gain, sizeof(zero_gain), 0);
|
ast_channel_setoption(chan, AST_OPTION_RXGAIN, &zero_gain, sizeof(zero_gain), 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue