Avaya 15-601063 ユーザーズマニュアル

ページ / 460
Voicemail Pro
Page 313
15-601063 Issue 20l (03 March 2009)
IP Office
Voicemail Pro Examples: Using VB Script
8.1.1.4 LastAccessedMsg Property
The LastAccessedMsg property returns the name of the last recorded message. If the IP Office TUI is used then this will
also contain the name of the last played message.
·
Owning object: vmprov5.voicescript
·
String:
·
Set: This property is read-only.
·
Get: A string object containing the fully qualified name of the last played or recorded message. For example: String
= Voice.LastAccessedMsg
 
8.1.1.5 Locale Property
The Locale property gets and sets the $LOC voicemail system variable.
·
Owning object: vmprov5.voicescript
·
String:
·
Set: A string object that contains the new value for the $LOC variable. For example: Voice.Locale = String
·
Get: A string object containing the current value for $ LOC. For example: String = Voice.Locale
·
Example
Sub Main (dlgid)
dim registration
Set Voice = CreateObject("vmprov5.voicescript")
registration = Voice.Register(dlgid)
if registration Then
           dim locale      
           DO SOME PROCESSING.
            l
ocale = Voice.Locale
            Rem NOW SET LOCALE TO FRENCH
            Voice.Locale = “fr”
            DO SOME PROCESSING.
            Rem NOW SET LOCALE BACK TO WHAT IT WAS
            Voice.Locale = locale
end if
End Sub