[asterisk-users] Creating a Voicemail ...
Russell Bryant
russell at digium.com
Sun Jul 1 22:10:00 CDT 2007
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.
More information about the asterisk-users
mailing list