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.

locale = 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

Voicemail Pro

Page 313

IP Office

15-601063 Issue 20l (03 March 2009)

Page 313
Image 313
Avaya 15-601063 manual LastAccessedMsg Property, Locale Property