From 4fbcb206b0ad6c71b88ff5b0bb5c5c8b2ae8a85c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 5 Oct 2007 00:05:41 +0000 Subject: [PATCH] fix echo git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5809 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_glue.c | 2 +- src/switch_ivr.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 0370c131fe..801ab1f6e7 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -949,7 +949,7 @@ switch_status_t sofia_glue_activate_rtp(private_object_t *tech_pvt) int len = atoi(val); if (len < 100 || len > 1000) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Jitterbuffer spec [%d] myst be between 100 and 1000\n", len); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Jitterbuffer spec [%d] must be between 100 and 1000\n", len); } else { int qlen; diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 156252501b..0ad234d6ea 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -1521,8 +1521,8 @@ SWITCH_DECLARE(void) switch_ivr_delay_echo(switch_core_session_t *session, uint3 uint32_t interval, samples; uint32_t ts = 0; - if (delay_ms < 100 || delay_ms > 10000) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Jitterbuffer spec [%d] myst be between 100 and 10000\n", delay_ms); + if (delay_ms < 1 || delay_ms > 10000) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid delay [%d] must be between 1 and 10000\n", delay_ms); return; }