Avaya 15-601063 Answering Machine User Manual


 
Voicemail Pro Page 320
15-601063 Issue 20l (03 March 2009)IP Office
8.1.2.7 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
8.1.2.8 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.
8.1.2.9 GetMailbox Method
The GetMailbox method is used to obtain a mailbox.
Voice.GetMailbox(
index As Long,
) As String
· Parameters
· index - The mailbox to return.
The actual mailbox number should not be entered as index refers to the offset number of the mailbox in the
listing.
· Return Value
The mailbox at that position within the list (an empty string if end of list).