Eric "ManxPower" Wieling wrote: > I believe that Asterisk's app_voicemail uses lock files for locking > mailboxes when creating a message. IIRC, Asterisk records the voicemail > message in a temp audio file, locks the mailbox, moves the file into the > mailbox, then unlocks the mailbox. > > Check the code to see what it does.
You're right. You can look in ast_lock_path() or ast_unlock_path() in main/app.c to see the implementation. It creates a .lock file in the mailbox's directory. Then, it won't write anything in that directory while the file already exists. -- Russell Bryant Software Engineer Digium, Inc. _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
