Version 0.1.7 from FTP

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2001-03-22 04:14:04 +00:00
parent cb8c335ca7
commit 58e773dfe1
4 changed files with 31 additions and 15 deletions

View File

@@ -230,8 +230,8 @@ static int gsm_write(struct ast_filestream *fs, struct ast_frame *f)
ast_log(LOG_WARNING, "Asked to write non-GSM frame (%d)!\n", f->subclass);
return -1;
}
if (f->datalen != 33) {
ast_log(LOG_WARNING, "Invalid data length, %d, should be 33\n", f->datalen);
if (f->datalen % 33) {
ast_log(LOG_WARNING, "Invalid data length, %d, should be multiple of 33\n", f->datalen);
return -1;
}
if ((res = write(fs->fd, f->data, f->datalen)) != f->datalen) {
@@ -296,3 +296,8 @@ char *description()
return desc;
}
char *key()
{
return ASTERISK_GPL_KEY;
}