[asterisk-users] Creating a Voicemail ...

Gordon Henderson gordon+asterisk at drogon.net
Mon Jul 2 07:10:14 CDT 2007


On Sun, 1 Jul 2007, Russell Bryant wrote:

> 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.

Thanks for these replies. Looks like the call-file is an easy way forward.

I've had a look at the voicemail code, and it doesn't look that hard to 
add something in, so maybe I'll look there too when I have more time!

Gordon



More information about the asterisk-users mailing list