[Asterisk-Users] Outgoing spool file ignored

Eric Wieling aka ManxPower eric at fnords.org
Mon May 16 09:13:54 MST 2005


trixter http://www.0xdecafbad.com wrote:

> How do you create them?
> 
> There is a race condition with asterisk and the spool where if you
> create the file or copy it into the queue directory asterisk tries to
> read and parse the file before you have finished writing it.  A
> suggested method instead is to create it on the same partition then move
> it into the appropriate directory to prevent this from occuring.

Create the file somwhere else.  Set the mtime (I think) to sometime in 
the future.  Move the file to /var/spool/asterisk/ourgoing.  Change 
the mtime to the current time or some time in the past.

-- 
Always do right. This will gratify some people and astonish the rest.
Mark Twain



More information about the asterisk-users mailing list