Voicemail Pro Installation and Maintenance Guide
Page 238
Voicemail Pro Installation and Maintenance Guide
15-601063 Issue 15b (31 May 2006)
IP Office
GetEstimatedAnswer Method
The GetEstimatedAnswer method is used to obtain the $QTIM session variable.
Voice. GetEstimatedAnswer (
[dlgid As Long = 0]
) As String
Parameters
dlgid - The connection ID as passed in to the script.
Return Value
The value of the $QTIM session variable associated with the specified voicemail session.
GetExtension Method
The GetExtension method is used to obtain an extension.
Voice.GetExtension(
index As Long,
) As String
Parameters
index - The extension to return. Note: The actual extension number should not be
entered as index refers to the offset number of the extension in the listing.
Return Value
The extension at that position within the list (an empty string if end of list).
Example
Sub Main (dlgid)
dim registration
Set Voice = CreateObject("vmprov5.voicescript")
registration = Voice.Register(dlgid)
if registration Then
dim index
dim ext
index = 0
Do
ext = Voice.GetExtension(index)
index = index + 1
Loop Until Len(ext) = 0
end if
End Sub
GetLocale Method
The GetLocale method is used to obtain the $LOC session variable.
Voice.GetLocale(
[dlgid As Long = 0]
) As String
Parameters
dlgid - The connection ID as passed in to the script.
Return Value
The value of the $LOC session variable associated with the specified voicemail session.