VBScript
Voicemail Pro Installation and Maintenance Guide
Page 245
IP Office
15-601063 Issue 15b (31 May 2006)
wait - This is an optional parameter specifying whether voicemail should return
immediately or wait until the wave file has been played first.
interruptables - This is for future development and should be left as default.
dlgid - The connection ID as passed in to the script.
Return Value
The key press that was used to terminate the playback.
PlayWav Method
The PlayWav method is used to play a wave file through voicemail to the active connection.
Voice.PlayWav(
wav As String,
[wait As Boolean = True],
[interruptables As String =
“
Any
”
],
[dlgid As Long = 0]
) As String
Parameters
wav - This contains the name of the wave file to be played or the name of a system
parameter to be spoken. The following formats are allowable:
$NAM
Plays the recorded name for the mailbox if one has been recorded. If a name has
not been recorded then optional TTS can be used (providing it has been licensed).
$TIME:hh[:mm[:ss] [ Y][ dd[/mm[/yy]]]]
Plays out the specified time and date. The hours to speak must always be
specified and optional the number of minutes, seconds, day, month and year. For
example:
$TIME:11
Speaks AT ELEVEN HOUR HUNDRED
$TIME:11:55
Speaks AT ELEVEN HOUR FIFTY FIVE
$TIME:11:55:13
Speaks AT ELEVEN HOUR FIFTY FIVE
$TIME:11:55 Y
Speaks YESTERDAY AT ELEVEN HOUR FIFTY FIVE
$TIME:11:55:13 Y
Speaks YESTERDAY AT ELEVEN HOUR FIFTY FIVE
$TIME:11:55 21/09/03
Speaks AT ELEVEN HOUR FIFTY FIVE [1SEC PAUSE] DATE TWENTY
FIRST SEPTEMBER
$QPOS [:position]
This plays out
“
You are at queue position
”
position
“
in the queue
”
.
$QTIM [:eta]
This plays out
“
Estimated time to answer is
”
eta
“
minutes
”
.
$MSGN:msgs
Plays out the specified number of old messages (e.g. $MSGN:10 =
“
You have ten
new messages
”
.
$MSGO:msgs
Plays out the specified number of old messages (e.g. $MSGN:0 =
“
You have no
old messages
”
.