/* Allow up to 96 voice frames outstanding, and up to 128 total frames */ // if (((fin->frametype == AST_FRAME_VOICE) && (qlen > 96)) || (qlen > 128)) { // if (fin->frametype != AST_FRAME_VOICE) { // ast_log(LOG_WARNING, "Exceptionally long queue length queuing to %s\n", chan->name); // CRASH; // } else { // ast_log(LOG_DEBUG, "Dropping voice to exceptionally long queue on %s\n", chan->name); // ast_frfree(f); // ast_mutex_unlock(&chan->lock); // return 0; // } // } /* Allow up to 96 voice frames outstanding, and up to 128 total frames */ if ((fin->frametype == AST_FRAME_VOICE) && (voicelen > 96)) { ast_log(LOG_DEBUG, "Dropping voice to exceptionally long queue on %s\n", chan->name); ast_frfree(f); ast_mutex_unlock(&chan->lock); return 0; } if ((fin->frametype != AST_FRAME_VOICE) && ((voicelen + otherlen) > 128)) { ast_log(LOG_WARNING, "Exceptionally long queue length queuing to %s\n", chan->name); CRASH; }