VBScript
Voicemail Pro Installation and Maintenance Guide
Page 241
IP Office
15-601063 Issue 15b (31 May 2006)
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.
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.
GetPositionInQueue Method
The GetPositionInQueue method is used to obtain the $QPOS session variable.
Voice. GetPositionInQueue (
[dlgid As Long = 0]
) As String
Parameters
dlgid - The connection ID as passed in to the script.
Return Value
The value of the $QPOS session variable associated with the specified voicemail session.
GetRegister Method
The GetRegister method is used to retrieve a string stored in one of the session sixteen data variables.
($CP0 to $CP15).
Voice.GetRegister(
regnum As Long,
[dlgid As Long = 0]
) As String
Parameters
regnum - Data register to use for storage (0-15).
dlgid - The connection ID as passed in to the script.
Return Value
The data stored within the specified register.