returning 128 emtpy Frames instead of null frame.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Christian Richter 2006-05-02 14:00:37 +00:00
parent 0765f065ca
commit 63b0baa757
1 changed files with 10 additions and 2 deletions

View File

@ -2074,8 +2074,16 @@ static struct ast_frame *misdn_read(struct ast_channel *ast)
tmp->zero_read_cnt=0;
}
tmp->frame.frametype = AST_FRAME_NULL;
tmp->frame.subclass = 0;
/*faking Voice Frame*/
tmp->frame.frametype = AST_FRAME_VOICE;
tmp->frame.subclass = AST_FORMAT_ALAW;
memset(tmp->ast_rd_buf,0,128);
tmp->frame.data = tmp->ast_rd_buf ;
tmp->frame.mallocd =0 ;
tmp->frame.datalen = 128;
tmp->frame.samples = 128;
frame=ast_frisolate(&tmp->frame);
return frame;
}