![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/6/21/6210557b-8edf-4d77-bfd9-112c28ace230/6210557b-8edf-4d77-bfd9-112c28ace230-bg163.png)
Voicemail Pro Installation and Maintenance Page 355
15-601063 Issue 22e (16 May 2010)IP Office Release 6
Voicemail Pro Examples: Using VB Script
7.1.2.20 GetRegister Method
This method is used to retrieve a string stored in one of the session sixteen data variables $CP0 to $CP15.
Voice.GetRegister(regnum, [dlgid])
· regnum (Long)
Data register to use for storage (0-15).
· dlgid (Long. Default = 0)
The connection for the voicemail session.
The data stored within the specified register. (String)
7.1.2.21 GetResult Method
This method is used to obtain the $RES session variable.
· dlgid (Long. Default = 0)
The connection for the voicemail session.
The value of the $RES session variable associated with the specified voicemail session. (String)
7.1.2.22 GetSavedMsgs Method
This method is used to obtain the number of saved messages contained within the session’s mailbox.
Voice.GetSavedMsgs ([dlgid])
· dlgid (Long. Default = 0)
The connection for the voicemail session.
The number of saved messages contained within the session’s mailbox. (Long)
7.1.2.23 GetSavedResult Method
This method is used to obtain the $SAV session variable.
Voice.GetSavedResult([dlgid])
· dlgid (Long. Default = 0)
The connection for the voicemail session.
The value of the $SAV session variable associated with the specified voicemail session. (String)
7.1.2.24 GetUserExtension Method
This method returns the extension number associated with the specified mailbox.
voice.GetUserExtension(mailbox)
· mailbox (String)
The mailbox to which the message belongs.
The extension number. (String)