VBScript
Voicemail Pro Installation and Maintenance Guide
Page 235
IP Office
15-601063 Issue 15b (31 May 2006)
SavedMsgs Property
The SavedMsgs property returns the number of saved messages contained within the session mailbox.
Owning object: vmprov5.voicescript
String:
Set: This property is read-only.
Get: The number of saved messages within the mailbox. For example:
Number = Voice.SavedMsgs
SavedResult Property
The SavedResult property gets and sets the $SAV voicemail system variable.
Owning object: vmprov5.voicescript
String:
Set: A string object that contains the new value for the $SAV variable. For example:
Voice.SavedResult = String
Get: A string object containing the current value for $SAV. For example:
String = Voice.SavedResult
Variable Property
The Variable property gets and sets the $VAR voicemail system variable.
Owning object: vmprov5.voicescript
String:
Set: A string object that contains the new value for the $VAR variable. For example:
Voice.Variable = String
Get: A string object containing the current value for $VAR. For example:
String = Voice.Variable
VBScript Methods
ForwardMsg Method
The ForwardMsg method is used to forward a file or message to other mailboxes.
Voice.ForwardMsg(
file As String,
mailboxes As String,
ident As String
)
Parameters
file - This contains the name of the message file to be forwarded. The following formats
are allowable:
[GREETINGS]\greeting
Forwards the greeting stored within the greetings directory (the .WAV extension is
automatically appended).
[ACCOUNTS]\mailbox\message
Forwards the message stored within the specified mailbox (the .WAV extension is
automatically appended).