Avaya 15-601063 User Manual

Page of 460
Voicemail Pro
Page 329
15-601063 Issue 20l (03 March 2009)
IP Office
Voicemail Pro Examples: Using VB Script
8.1.2.30 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”.
·
$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".
·
[GREETING]\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).
·
[CAMPAIGN]\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