aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-24 22:56:41 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-24 22:56:41 +0000
commit23b2d967cb858320d3fd7f19ae8a214c603f026d (patch)
treeb308a339bb1063ddc08358813f1864c6e3c3ec33 /apps/app_voicemail.c
parent920ef427908a28dc83edc6cff768663a870b45ae (diff)
fix copy-and-paste error
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6638 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rwxr-xr-xapps/app_voicemail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index acb8bb3f8..a1c759bc8 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -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':