Voicemail Pro Installation and Maintenance Guide
Page 246
Voicemail Pro Installation and Maintenance Guide
15-601063 Issue 15b (31 May 2006)
IP Office
$MSGS:msgs
Plays out the specified number of old messages (e.g. $MSGS:5 =
“
You have five
saved messages
”
.
$CID, $CLI, $CP, $DATE, $DBD, $DLG, $ETA, $KEY, $LOC, $POS, $SAV,
$TIME, $UUI, $VAR
Plays out the contents on one of the system variables.
If the string just contains numbers, then the digits are played, for example 12345
plays "one two three four five".
[GREETINGS]\greeting
Plays out the greeting stored within the greetings directory (the .WAV extension is
automatically appended).
[ACCOUNTS]\mailbox\message
Plays out the message stored within the specified mailbox (the .WAV extension is
automatically appended).
[CAMPAIGNS]\campaign\message
Plays out a campaign message stored within the specified campaign (the .WAV
extension is automatically appended).
If the fully qualified path is specified (drive:\path\file) then the full specified
pathname is used otherwise the file is relative to the WAVS directory.
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.
Example
Sub Main (dlgid)
dim registration
Set Voice = CreateObject("vmprov5.voicescript")
registration = Voice.Register(dlgid)
if registration Then
dim key
key = Voice.PlayWav(
“
test
”
, True,
“
Any
”
, dlgid);
end if
End Sub