[Asterisk-Dev] Voicemail locking

Olle E. Johansson oej at edvina.net
Wed Jul 20 13:09:20 MST 2005


If I understand the voicemail code right (which might not be the case)
we lock the voicemail directory when we open a voicemail message file,
listen to and write the whole file, then unlock the directory.

Wouldn't it be a bit more clever to
* Lock the directory
* Create the files
* Unlock the directory
* Write the files

If we need to remove the files due to the duration limit, we can lock
again.

With this locking scheme, we can receive multiple messages at the same time.

Again, I might be wrong. Have no real experience of digging into the
voicemail code...

/O



More information about the asterisk-dev mailing list