On Thu, 19 Aug 2004, Tobias Jönsson wrote: > > There is a race in this solution of /tmp and > > /var/spool/asterisk/outgoing are on different file systems. Then the > > rename operation (mv) is not atomic but rather a copy. > > Thank you Peter for pointing out that! My mistake. Unfortunately Asterisk > reads all files in the outgoing directory, not only *.call files, so it is > difficult to give a general solution to this. You can never be sure that a > file in a different directory is on the same file system, can you? Perhaps > the safiest would be to create a /var/spool/asterisk/outgoing/tmp > directory?
I drop the temporary file in /var/spool/asterisk/ which on the system in question is on the same file system as /var/spool/asterisk/outgoing/. I don't know what will happen if there is a directory in outgoing/. Peter _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users