[Asterisk-cvs] asterisk/apps app_chanspy.c,1.15,1.16

russell at lists.digium.com russell at lists.digium.com
Thu May 26 12:01:06 CDT 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv6708/apps

Modified Files:
	app_chanspy.c 
Log Message:
don't play any sounds when using the quiet option (bug #4348)


Index: app_chanspy.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_chanspy.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- app_chanspy.c	21 Apr 2005 06:30:23 -0000	1.15
+++ app_chanspy.c	26 May 2005 16:05:07 -0000	1.16
@@ -712,13 +712,15 @@
 	}
 
 	for(;;) {
-		res = ast_streamfile(chan, "beep", chan->language);
-		if (!res)
-			res = ast_waitstream(chan, "");
-		if (res < 0) {
-			ast_clear_flag(chan, AST_FLAG_SPYING);
-			break;
-		}			
+		if (!silent) {
+			res = ast_streamfile(chan, "beep", chan->language);
+			if (!res)
+				res = ast_waitstream(chan, "");
+			if (res < 0) {
+				ast_clear_flag(chan, AST_FLAG_SPYING);
+				break;
+			}
+		}
 
 		count = 0;
 		res = ast_waitfordigit(chan, waitms);




More information about the svn-commits mailing list