提交 c32fbf3e authored 作者: Brian West's avatar Brian West

increase buffers for when you're doing 32k calls

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7499 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 961b483c
...@@ -248,7 +248,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_wait_for_answer(switch_core_session_t ...@@ -248,7 +248,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_wait_for_answer(switch_core_session_t
switch_core_session_message_t *message = NULL; switch_core_session_message_t *message = NULL;
switch_frame_t *read_frame = NULL; switch_frame_t *read_frame = NULL;
switch_status_t status = SWITCH_STATUS_SUCCESS; switch_status_t status = SWITCH_STATUS_SUCCESS;
uint8_t abuf[1024]; uint8_t abuf[SWITCH_RECOMMENDED_BUFFER_SIZE];
int timelimit = 60; int timelimit = 60;
const char *var = switch_channel_get_variable(caller_channel, "call_timeout"); const char *var = switch_channel_get_variable(caller_channel, "call_timeout");
switch_time_t start = 0; switch_time_t start = 0;
...@@ -376,7 +376,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_wait_for_answer(switch_core_session_t ...@@ -376,7 +376,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_wait_for_answer(switch_core_session_t
if (read_frame && !pass) { if (read_frame && !pass) {
if (ringback.fh) { if (ringback.fh) {
uint8_t fbuf[1024]; uint8_t fbuf[SWITCH_RECOMMENDED_BUFFER_SIZE];
switch_size_t mlen, olen; switch_size_t mlen, olen;
unsigned int pos = 0; unsigned int pos = 0;
...@@ -467,7 +467,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess ...@@ -467,7 +467,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
int32_t sleep_ms = 1000, try = 0, retries = 1, idx = IDX_NADA; int32_t sleep_ms = 1000, try = 0, retries = 1, idx = IDX_NADA;
switch_codec_t write_codec = { 0 }; switch_codec_t write_codec = { 0 };
switch_frame_t write_frame = { 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; char key[80] = SWITCH_BLANK_STRING, file[512] = SWITCH_BLANK_STRING, *odata, *var;
switch_call_cause_t reason = SWITCH_CAUSE_UNALLOCATED; switch_call_cause_t reason = SWITCH_CAUSE_UNALLOCATED;
uint8_t to = 0; uint8_t to = 0;
...@@ -1033,7 +1033,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess ...@@ -1033,7 +1033,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
if (ring_ready && read_frame && !pass) { if (ring_ready && read_frame && !pass) {
if (ringback.fh) { if (ringback.fh) {
uint8_t abuf[1024]; uint8_t abuf[SWITCH_RECOMMENDED_BUFFER_SIZE];
switch_size_t mlen, olen; switch_size_t mlen, olen;
unsigned int pos = 0; unsigned int pos = 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论