[asterisk-dev] Understanding Voicemail Storage

Arnd Vehling av at nethead.de
Tue Aug 22 23:13:07 MST 2006


Hi,

i am writing an (open source) abstraction layer to access and manipulate
asterisk voicemails using http and outputting the results in xml.

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

Can someone confirm that i understood this correctly and if neccessary
correct me where i am wrong?

thx & best regards,

   Arnd



More information about the asterisk-dev mailing list