Avaya 15-601063 Manuel D’Utilisation

Page de 460
Voicemail Pro
Page 332
15-601063 Issue 20l (03 March 2009)
IP Office
8.1.2.33 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
 
8.1.2.34 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.