diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-07 14:15:37 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-07 14:15:37 +0000 |
commit | 4b8de0713e350cd4ac23266003841502fd40b736 (patch) | |
tree | 3b2fa268f66f2cd7ab317ec7d8cda927677c9be6 /apps/app_chanspy.c | |
parent | 8f21e3659b980789bacd8b2b6efdb76dfd6ff110 (diff) |
reset channel volumes when exiting apps that use them
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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); } |