Voicemail Pro Page 323
15-601063 Issue 20l (03 March 2009)IP Office
Voicemail Pro Examples: Using VB Script
8.1.2.15 GetName Method
The GetName method is used to obtain the $NAM session variable.
Voice.GetName(
[dlgid As Long = 0]
) As String
·Parameters
·dlgid - The connection ID as passed in to the script.
·Return Value
The value of the $NAM session variable associated with the specified voicemail session.
8.1.2.16 GetNewMsgs Method
The GetNewMsgs method is used to obtain the number of new messages contained within the session’s mailbox.
Voice.GetNewMsgs (
[dlgid As Long = 0]
) As Long
·Parameters
·dlgid - The connection ID as passed in to the script.
·Return Value
The number of new messages contained within the session’s mailbox.
8.1.2.17 GetOldMsgs Method
The GetOldMsgs method is used to obtain the number of old messages contained within the session’s mailbox.
Voice.GetOldMsgs (
[dlgid As Long = 0]
) As Long
·Parameters
·dlgid - The connection ID as passed in to the script.
·Return Value
The number of old messages contained within the session’s mailbox.