[Freeswitch-svn] [commit] r7499 - freeswitch/trunk/src
Freeswitch SVN
brian at freeswitch.org
Sun Feb 3 16:09:07 EST 2008
Author: brian
Date: Sun Feb 3 16:09:06 2008
New Revision: 7499
Modified:
freeswitch/trunk/src/switch_ivr_originate.c
Log:
increase buffers for when you're doing 32k calls
Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c (original)
+++ freeswitch/trunk/src/switch_ivr_originate.c Sun Feb 3 16:09:06 2008
@@ -248,7 +248,7 @@
switch_core_session_message_t *message = NULL;
switch_frame_t *read_frame = NULL;
switch_status_t status = SWITCH_STATUS_SUCCESS;
- uint8_t abuf[1024];
+ uint8_t abuf[SWITCH_RECOMMENDED_BUFFER_SIZE];
int timelimit = 60;
const char *var = switch_channel_get_variable(caller_channel, "call_timeout");
switch_time_t start = 0;
@@ -376,7 +376,7 @@
if (read_frame && !pass) {
if (ringback.fh) {
- uint8_t fbuf[1024];
+ uint8_t fbuf[SWITCH_RECOMMENDED_BUFFER_SIZE];
switch_size_t mlen, olen;
unsigned int pos = 0;
@@ -467,7 +467,7 @@
int32_t sleep_ms = 1000, try = 0, retries = 1, idx = IDX_NADA;
switch_codec_t write_codec = { 0 };
switch_frame_t write_frame = { 0 };
- uint8_t fdata[1024], pass = 0;
+ uint8_t fdata[SWITCH_RECOMMENDED_BUFFER_SIZE], pass = 0;
char key[80] = SWITCH_BLANK_STRING, file[512] = SWITCH_BLANK_STRING, *odata, *var;
switch_call_cause_t reason = SWITCH_CAUSE_UNALLOCATED;
uint8_t to = 0;
@@ -1033,7 +1033,7 @@
if (ring_ready && read_frame && !pass) {
if (ringback.fh) {
- uint8_t abuf[1024];
+ uint8_t abuf[SWITCH_RECOMMENDED_BUFFER_SIZE];
switch_size_t mlen, olen;
unsigned int pos = 0;
More information about the Freeswitch-svn
mailing list