mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
fix copy-and-paste error
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3263,10 +3263,10 @@ static int vm_forwardoptions(struct ast_channel *chan, struct ast_vm_user *vmu,
|
||||
char file[200];
|
||||
snprintf(file, sizeof(file), "%s/msg%04d", curdir, curmsg);
|
||||
if (record_gain)
|
||||
ast_channel_setoption(chan, AST_OPTION_TXGAIN, &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, file, 0, vmfmts, &duration, 1, silencethreshold, maxsilence);
|
||||
if (record_gain)
|
||||
ast_channel_setoption(chan, AST_OPTION_TXGAIN, &zero_gain, sizeof(zero_gain), 0);
|
||||
ast_channel_setoption(chan, AST_OPTION_RXGAIN, &zero_gain, sizeof(zero_gain), 0);
|
||||
break;
|
||||
}
|
||||
case '2':
|
||||
|
Reference in New Issue
Block a user