![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/6/21/6210557b-8edf-4d77-bfd9-112c28ace230/6210557b-8edf-4d77-bfd9-112c28ace230-bg160.png)
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.
Voice.GetExtension(index)
· 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.
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.
voice.GetLastAccessedMsg(dlgid)
· dlgid (Long. Default = 0)
The connection for the voicemail session.
The message name. (String)
7.1.2.9 GetLocale Method
This method can be used to obtain the $LOC session variable.
· dlgid (Long. Default = 0)
The connection for the voicemail session.
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.
· 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.
The mailbox at that position within the list, an empty string if end of list.
234