@phone::playAttachedVoiceMessage

Plays a voice message that has been recorded and attached to the specified event.

Syntax:

@phone::playAttachedVoiceMessage(EventScriptObject eventObj)

Parameters:

(EventScriptObject) eventObj: the event script object containing the voice message to play.

Returns:

(Boolean) true if a voice recording is played to the User or if no recording exists; false if the recording exists, but the file is not populated to the local data store and the voice recording could not be played.

Example:

The following example illustrates how to use the playAttachedVoiceMessages method:

$played = @phone::playAttachedVoiceMessages(@event)
WHILE (!$played)
  @phone::play("phrase", "Please hold while we extract your message from database")
  sleep(5)
  $played = @phone::playAttachedVoiceMessages(@event)
ENDWHILE