From 4b8de0713e350cd4ac23266003841502fd40b736 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Wed, 7 Sep 2005 14:15:37 +0000 Subject: 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 --- apps/app_chanspy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/app_chanspy.c') 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); } -- cgit v1.2.3