[asterisk-dev] Understanding Voicemail Storage

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Wed Aug 23 05:31:37 MST 2006


On Wednesday 23 August 2006 01:13, Arnd Vehling wrote:
> Right now i am trying to understand how exactly the physical
> voicemail storage system works: First, app_voicemail locks the
> complete directory when manipulating or inserting a voicemail. A
> new or moved voicemail is always created as "msg0000.*" and all

Incorrect.  A new or moved voicemail is created at the last slot,
not at the first slot.  Existing voicemails stay in the same order,
from the oldest placed to the newest placed.  Note that this is the
order in which they were placed into the subfolder, which is usually
(but not always!) in chronological order.

> older messages are renumbered accordingly. If any "holes" (i.e.
> msg00000, msg00001, msg00003) in the numbering system are
> discovered app_voicemails renumbers the files too. After the
> insertion/renumbering process is complete app_voicemail will remove
> the directory lock.

-- 
Tilghman



More information about the asterisk-dev mailing list