[asterisk-dev] temporary file names for monitor files
Simon Perreault
simon.perreault at viagenie.ca
Mon Jun 2 12:22:24 CDT 2008
On Monday 02 June 2008 13:07:42 John Lange wrote:
> Second problem is bit more significant. With the -t flag, asterisk still
> appears to open the file (in /var/spool/asterisk/monitor) but it remains
> a zero length file until the call ends at which point the data is
> written into it.
>
> [...]
>
> However, this still seems like a bit of a bug. Why would it be opening
> the file in the monitor directory at the start of the call?
For the same reason Firefox does the same thing when starting a download: to
reserve the destination filename. This way it makes sure it will be able to
copy the temporary filename to the destination filename.
Your cron job could be modified simply by making it ignore zero-length files.
More information about the asterisk-dev
mailing list