Voicemail Pro Installation and Maintenance Guide
Page 248
Voicemail Pro Installation and Maintenance Guide
15-601063 Issue 15b (31 May 2006)
IP Office
Register Method
The Register method is used to determine whether the voicemail session that was used to launch the
VB script is still active.
Voice.Register(
dlgid As Long
) As Boolean
Parameters
dlgid - An ID that is associated with the Voicemail connection. This is passed as a
parameter to the VB script.
Return Value
A Boolean variable indicating whether the specified voicemail session is still active.
Example
Sub Main (dlgid)
dim registration
Set Voice = CreateObject("vmprov5.voicescript")
registration = Voice.Register(dlgid)
if registration Then
do something.
end if
End Sub
SetLocale Method
The SetLocale method is used to set the $LOC session variable.
Voice.SetLocale(
locale As String,
[dlgid As Long = 0]
)
Parameters
locale - The new value for the $LOC variable.
dlgid - The connection ID as passed in to the script.
Return Value
This method does not return a value.
SetMailboxMessage Method
The SetMailboxMessage method is used to modify a message within a mailbox.
Voice.SetMailboxMessage(
mailbox As String,
message As String,
msgtype As String,
)
Parameters
mailbox - The mailbox that the return message belongs to.
message - The message to modify. The message name format should be
[Accounts]\mailbox\message. For example [Accounts]\Extn247\MSG00004.
msgtype - The new statue type for the message. This can start with an N for new, O for
old and S for saved.
Return Value
This method does not return a value.