diff --git a/src/mod/endpoints/mod_unicall/mod_unicall.c b/src/mod/endpoints/mod_unicall/mod_unicall.c index 92dee3f2cf..ee4d65e9ef 100644 --- a/src/mod/endpoints/mod_unicall/mod_unicall.c +++ b/src/mod/endpoints/mod_unicall/mod_unicall.c @@ -1771,7 +1771,7 @@ static switch_status_t config_unicall(int reload) for (i = min_span; i <= max_span; i++) { current_span = i; - if (current_span <= 0 || current_span > MAX_SPANS) { + if (current_span <= 0 || current_span >= MAX_SPANS) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid SPAN %d!\n", current_span); current_span = 0; continue;