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