- check for correct size in rtp send

This commit is contained in:
MelwareDE 2006-06-10 18:16:33 +00:00
parent b7f8b51ae0
commit 1b5f560431
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ int capi_write_rtp(struct ast_channel *c, struct ast_frame *f)
return -1;
}
if (f->datalen > (2000)) {
if (f->datalen > CAPI_MAX_B3_BLOCK_SIZE) {
cc_verbose(4, 0, VERBOSE_PREFIX_4 "%s: rtp write data: frame too big (len = %d).\n",
i->name, f->datalen);
return -1;