diff options
Diffstat (limited to 'apps/app_chanspy.c')
-rwxr-xr-x | apps/app_chanspy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index 93c898741..89ee070eb 100755 --- a/apps/app_chanspy.c +++ b/apps/app_chanspy.c @@ -535,7 +535,7 @@ static int chanspy_exec(struct ast_channel *chan, void *data) oldwf = 0, fd = 0; struct ast_flags flags; - + signed char zero_volume = 0; if (!(args = ast_strdupa((char *)data))) { ast_log(LOG_ERROR, "Out of memory!\n"); @@ -703,6 +703,9 @@ static int chanspy_exec(struct ast_channel *chan, void *data) } ast_clear_flag(chan, AST_FLAG_SPYING); + + ast_channel_setoption(chan, AST_OPTION_TXGAIN, &zero_volume, sizeof(zero_volume), 0); + ALL_DONE(u, res); } |