Voicemail Pro Examples: Using VB Script

7.1.2.30 MessageLength Method

This method is used to obtain the length of a message within a mailbox.

Method

Voice.MessageLength(mailbox, message)

 

 

 

Parameters

mailbox (String)

 

 

The mailbox to which the message belongs.

 

message

 

 

The message to query.

 

 

Return Value

The length of the message in milliseconds. (Long)

 

 

 

7.1.2.31 MessageTime Method

This method is used to obtain the date and time the message was left within a mailbox.

Method

Voice.MessageTime(mailbox, message)

 

 

 

Parameters

mailbox (String)

 

 

The mailbox to which the message belongs.

 

message

 

 

The message to query.

 

 

Return Value

The time the message was left in the format: YEAR/MONTH/DAY HOUR:MINUTE. For example

 

2003/09/23 13:26. (String)

 

 

 

7.1.2.32 PlayDigits Method

This method is used to play the digits specified through voicemail to the active connection.

Method

Voice.PlayDigits(digits, [wait], [interruptables], [dlgid])

 

 

 

Parameters

digits (String)

 

 

This contains the digits to be played. For example "12345" plays "one two three four five".

 

wait (Boolean)

 

 

This optional parameter specifes whether voicemail should return immediately (0) or wait

 

 

until the wave file has been played first (1).

 

interruptables (String, Default = "Any")

 

 

This is for future development.

 

dlgid (Long. Default = 0)

 

 

The connection for the voicemail session.

 

 

Return Value

The key press that was used to terminate the playback. (String)

 

 

 

Example

 

Sub

Main (dlgid)

dim

registration

Set

Voice = CreateObject("vmprov5.voicescript")

registration = Voice.Register(dlgid)

if registration Then

 

dim key

end

key = Voice.PlayDigits("12345");

if

End

Sub

Voicemail Pro Installation and Maintenance

Page 357

IP Office Release 6

15-601063 Issue 22e (16 May 2010)

Page 357
Image 357
Avaya 6 manual MessageLength Method, MessageTime Method, PlayDigits Method