mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user