On Tuesday 24 July 2007 11:38:09 pm Jim Van Meggelen wrote:
> - how do we track messages? I log in, have 20 messages in my INBOX. I want
> to delete message 3, 7 and 15. What happens when I log out?
> -- can I undelete in the same session? (in other words, don't delete the
> message until I log out)
> -- when I listen to a message, it can't move from the INBOX to Old unless
> one of two events happen:
> -- 1) I move it manually
> -- 2) I log out
> -- when I move it, it has to be re-numbered

You and I reviewed (very briefly) the new minivm app that oej is working on.  
It handles the greetings and notification just fine, but does nothing for 
actual message handling.

Background() and Record() should handle the actual audio<-->file stuff.  AstDB 
can be used to store state and locking bits (to keep 2 people from listening 
to the same mailbox, etc.).  What seems needed, as you mentioned, is a file 
accessor. A flag to Record() could automatically create directory (trees) so 
that if /var/spool/asterisk/vm/123/new didn't exist, it'd create it and then 
record the file.

We'd spoken briefly about something like a vmfile() function which would take 
an operation, filespec and a variable number of options/flags.  Things like
move - moves a file to a directory
delete - deletes a file
find - returns a filename matching a file specification, with flags for find 
in alphanumeric or time sorted fashion.  loop to find next.

All of these could be done in less elegant ways with system(), but that's not 
very portable to start, and is rife with problems.

If you wanted to add lock/unlock you could do away with the "only one person 
in vmbox at a time" rule, although I don't think even with heavy concurrent 
access that would be a good idea.

I'll try to corner oej online and see what he's up to with minivm.

-A.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to