[asterisk-dev] asterisk stream

Yaroslav Panych panych.y at gmail.com
Sun Jun 12 06:20:36 CDT 2011

Actually ast_streamfile does not cares about buffering and other
low-level stuffs. This task is delegated to file format subroutines(in
your case it is ast_filestream->fmt->write which is implemented in
correspondent module). In most cases this modules are using standard
libc File I/O (fopen,fread,fwrite,fclose etc). So your task is to
modify or rewrite those modules to work in manner you require.

2011/6/12 ik <idokan at gmail.com>:
> I'm trying to figure out how much data the ast_streamfile require prior for
> flushing data to disk.
> The thing is, that I'm trying to change MixMonitor to flush the recording in
> "real-time" while the RTP is available, instead of flushing the data when
> buffer is full or channel was hangup.
> How can I that ?

More information about the asterisk-dev mailing list