Avaya 6 IP Phone User Manual


 
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.
Method
Voice.GetRegister(regnum, [dlgid])
Parameters
· regnum (Long)
Data register to use for storage (0-15).
· dlgid (Long. Default = 0)
The connection for the voicemail session.
Return Value
The data stored within the specified register. (String)
7.1.2.21 GetResult Method
This method is used to obtain the $RES session variable.
Method
Voice.GetResult([dlgid])
Parameters
· dlgid (Long. Default = 0)
The connection for the voicemail session.
Return Value
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.
Method
Voice.GetSavedMsgs ([dlgid])
Parameters
· dlgid (Long. Default = 0)
The connection for the voicemail session.
Return Value
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.
Method
Voice.GetSavedResult([dlgid])
Parameters
· dlgid (Long. Default = 0)
The connection for the voicemail session.
Return Value
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.
Method
voice.GetUserExtension(mailbox)
Parameters
· mailbox (String)
The mailbox to which the message belongs.
Return Value
The extension number. (String)