[asterisk-commits] trunk r24168 - /trunk/channels/chan_misdn.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue May 2 07:00:38 MST 2006
Author: crichter
Date: Tue May 2 09:00:37 2006
New Revision: 24168
URL: http://svn.digium.com/view/asterisk?rev=24168&view=rev
Log:
returning 128 emtpy Frames instead of null frame.
Modified:
trunk/channels/chan_misdn.c
Modified: trunk/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_misdn.c?rev=24168&r1=24167&r2=24168&view=diff
==============================================================================
--- trunk/channels/chan_misdn.c (original)
+++ trunk/channels/chan_misdn.c Tue May 2 09:00:37 2006
@@ -2074,8 +2074,16 @@
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;
}
More information about the asterisk-commits
mailing list