[Asterisk-cvs] asterisk/apps app_chanspy.c,1.6,1.7

anthm at lists.digium.com anthm at lists.digium.com
Wed Mar 30 10:13:32 CST 2005


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

Modified Files:
	app_chanspy.c 
Log Message:
increase buffer space

Index: app_chanspy.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_chanspy.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- app_chanspy.c	29 Mar 2005 17:46:37 -0000	1.6
+++ app_chanspy.c	30 Mar 2005 16:07:07 -0000	1.7
@@ -36,7 +36,7 @@
 #define ALL_DONE(u, ret) LOCAL_USER_REMOVE(u); return ret;
 #define get_volfactor(x) x ? ((x > 0) ? (1 << x) : ((1 << abs(x)) * -1)) : 0
 #define minmax(x,y) x ? (x > y) ? y : ((x < (y * -1)) ? (y * -1) : x) : 0
-
+#define CS_BUFLEN 640
 
 
 static char *synopsis = "Tap into any type of asterisk channel and listen to audio";
@@ -175,7 +175,7 @@
 {
 	struct ast_frame *f0, *f1, write_frame, *f;
 	int x=0, framelen_a = 0, framelen_b = 0, size = 0;
-	short buf[320], buf0[320], buf1[320];
+	short buf[CS_BUFLEN], buf0[CS_BUFLEN], buf1[CS_BUFLEN];
 	struct chanspy_translation_helper *csth = data;
 	int nc = 0, vf;
 	




More information about the svn-commits mailing list