The MoveFile command is used for moving your source file into a specified
target directory. A target directory could only be the installed directory
of the Ozeki Phone System XE, the Voicemails directory which contains the
old, new and the attachment directories of an extension and the directory
of your uploaded files.
This speaks the 2 sentences between the <InitialCommands></InitialCommands> nodes repeatedly with a 5 second delay and scans the pressed numbers at the same time.
By pressing 1 the system will go through your old voicemails array with the ForEach loop and it will play them. If you press 1 again, you can delete the current message with the <DeleteFile></DeleteFile> command.
<UserInput repeat ='true'digits ='1'>
<Speak>This is the voicemail of user $username .</Speak>
<Speak>To listen to your new messages, press 1.</Speak>
<Input key ='1'>
<ForEach source ='voicemails'>
<Speak>This voicemail has been recorded at $item.date from $item.from .</Speak>
<MoveFile SourceFile='$item.message' TargetDirectory='$oldmessagepath'></MoveFile>
<Speak>You have no new messages.</Speak>