Voicemail Pro Installation and Maintenance Guide
Page 244
Voicemail Pro Installation and Maintenance Guide
15-601063 Issue 15b (31 May 2006)
IP Office
PlayDigits Method
The PlayDigits method is used to play the digits specified through voicemail to the active connection.
Voice.PlayDigits(
digits As String,
[wait As Boolean = True],
[interruptables As String =
“
Any
”
],
[dlgid As Long = 0]
) As String
Parameters
digits - This contains the digits to be played (e.g.
“
12345
”
plays
“
one two three four five
”
).
wait - This is an optional parameter specifying whether voicemail should return
immediately or wait until the digits have 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.PlayDigits(
“
12345
”
);
end if
End Sub
PlayLocaleWav Method
The PlayLocaleWav method is used to play a wave file through voicemail to the active connection
taking into account the system locale.
Voice.PlayLocaleWav(
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 and is of the following format:
[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 path
name is used otherwise the file is relative to the specified locale within the WAVS
directory.