Voicemail Pro Installation and Maintenance Page 352
15-601063 Issue 22e (16 May 2010)IP Office Release 6
7.1.2.7 GetExtension Method
This method is used to obtain an extension.
Method
Voice.GetExtension(index)
Parameters
·index (Long)
The extension to return. Note that 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. (String)
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
7.1.2.8 GetLastAccessed Msg Method
This method returns the name of the last recorded or played message. It is the same as using $ for the filename with an
eMail action.
Method
voice.GetLastAccessedMsg(dlgid)
Parameters
·dlgid (Long. Default = 0)
The connection for the voicemail session.
Return Value
The message name. (String)
7.1.2.9 GetLocale Method
This method can be used to obtain the $LOC session variable.
Method
Voice.GetLocale([dlgid])
Parameters
·dlgid (Long. Default = 0)
The connection for the voicemail session.
Return Value
The value of the $LOC session variable associated with the specified voicemail session.
7.1.2.10 GetMailbox Method
This method can be used to obtain a mailbox.
Method
Voice.GetMailbox(index)
Parameters
·index (Long)
The extension to return. Note that the actual extension number should not be entered as
index refers to the offset number of the extension in the listing.
Return Value
The mailbox at that position within the list, an empty string if end of list.
234