From f5681b35a9c844130f9bcf00c3eaec99710cbbc1 Mon Sep 17 00:00:00 2001 From: mmichelson Date: Fri, 13 Jul 2007 20:10:39 +0000 Subject: Fixed an issue where chanspy flags were uninitialized if no options were passed. What triggered this investigation was an IRC chat where some people's quiet flags were set while others' weren't even though none of them had specified the q option. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75066 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_chanspy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index 7510c68e9..34db4f7be 100644 --- a/apps/app_chanspy.c +++ b/apps/app_chanspy.c @@ -432,6 +432,8 @@ static int chanspy_exec(struct ast_channel *chan, void *data) volfactor = vol; } } + else + ast_clear_flag(&flags, AST_FLAGS_ALL); if (recbase) { char filename[512]; -- cgit v1.2.3