git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@964 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2006-03-29 22:16:06 +00:00
parent 9ed06edb96
commit e3d0adb850
2 changed files with 15 additions and 14 deletions

View File

@ -34,8 +34,8 @@ POST_INSTALL = :
NORMAL_UNINSTALL = : NORMAL_UNINSTALL = :
PRE_UNINSTALL = : PRE_UNINSTALL = :
POST_UNINSTALL = : POST_UNINSTALL = :
build_triplet = x86_64-unknown-linux-gnu build_triplet = i686-pc-linux-gnu
host_triplet = x86_64-unknown-linux-gnu host_triplet = i686-pc-linux-gnu
noinst_PROGRAMS = example1$(EXEEXT) example2$(EXEEXT) \ noinst_PROGRAMS = example1$(EXEEXT) example2$(EXEEXT) \
example3$(EXEEXT) example4$(EXEEXT) example3$(EXEEXT) example4$(EXEEXT)
subdir = examples subdir = examples
@ -114,8 +114,8 @@ INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL} INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL} INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
IS64BITLINUX_FALSE = # IS64BITLINUX_FALSE =
IS64BITLINUX_TRUE = IS64BITLINUX_TRUE = #
LDFLAGS = LDFLAGS =
LIBOBJS = LIBOBJS =
LIBS = LIBS =
@ -170,18 +170,18 @@ am__quote =
am__tar = ${AMTAR} chof - "$$tardir" am__tar = ${AMTAR} chof - "$$tardir"
am__untar = ${AMTAR} xf - am__untar = ${AMTAR} xf -
bindir = ${exec_prefix}/bin bindir = ${exec_prefix}/bin
build = x86_64-unknown-linux-gnu build = i686-pc-linux-gnu
build_alias = build_alias =
build_cpu = x86_64 build_cpu = i686
build_os = linux-gnu build_os = linux-gnu
build_vendor = unknown build_vendor = pc
datadir = ${prefix}/share datadir = ${prefix}/share
exec_prefix = ${prefix} exec_prefix = ${prefix}
host = x86_64-unknown-linux-gnu host = i686-pc-linux-gnu
host_alias = host_alias =
host_cpu = x86_64 host_cpu = i686
host_os = linux-gnu host_os = linux-gnu
host_vendor = unknown host_vendor = pc
includedir = ${prefix}/include includedir = ${prefix}/include
infodir = ${prefix}/info infodir = ${prefix}/info
install_sh = /usr/src/freeswitch.trunk/libs/jrtplib/install-sh install_sh = /usr/src/freeswitch.trunk/libs/jrtplib/install-sh

View File

@ -32,7 +32,7 @@
#ifndef HAVE_CURL #ifndef HAVE_CURL
#define HAVE_CURL #define HAVE_CURL
#endif #endif
#define JS_BUFFER_SIZE 131072
#include <switch.h> #include <switch.h>
#include "jstypes.h" #include "jstypes.h"
@ -1523,7 +1523,7 @@ static JSBool teletone_construct(JSContext *cx, JSObject *obj, uintN argc, jsval
} }
} }
switch_buffer_create(pool, &tto->audio_buffer, SWITCH_RECCOMMENDED_BUFFER_SIZE); switch_buffer_create(pool, &tto->audio_buffer, JS_BUFFER_SIZE);
tto->pool = pool; tto->pool = pool;
tto->obj = obj; tto->obj = obj;
tto->cx = cx; tto->cx = cx;
@ -1604,7 +1604,7 @@ static JSBool teletone_generate(JSContext *cx, JSObject *obj, uintN argc, jsval
} }
loops--; loops--;
if (!tto->loop_buffer) { if (!tto->loop_buffer) {
switch_buffer_create(tto->pool, &tto->loop_buffer, SWITCH_RECCOMMENDED_BUFFER_SIZE); switch_buffer_create(tto->pool, &tto->loop_buffer, JS_BUFFER_SIZE);
} }
} }
@ -1633,6 +1633,7 @@ static JSBool teletone_generate(JSContext *cx, JSObject *obj, uintN argc, jsval
} }
for(;;) { for(;;) {
if (switch_test_flag(tto, TTF_DTMF)) { if (switch_test_flag(tto, TTF_DTMF)) {
char dtmf[128]; char dtmf[128];
char code[512]; char code[512];
@ -1677,7 +1678,7 @@ static JSBool teletone_generate(JSContext *cx, JSObject *obj, uintN argc, jsval
break; break;
} }
} else { } else {
break; continue;
} }
} }