aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authoranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-30 16:07:07 +0000
committeranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-30 16:07:07 +0000
commit3b02f9532c621f0e4f04147084876ed9e92ef88a (patch)
tree5c990f3881de52fd160ca6d39407a5d0d2e3cfb7 /apps
parent40b6716991672d06b6cb1788a103d536bc6441e1 (diff)
increase buffer space
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5306 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_chanspy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c
index e966b3c0e..48a659354 100755
--- a/apps/app_chanspy.c
+++ b/apps/app_chanspy.c
@@ -36,7 +36,7 @@ AST_MUTEX_DEFINE_STATIC(modlock);
#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 @@ static int spy_generate(struct ast_channel *chan, void *data, int len, int sampl
{
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;