Plays a voice message that has been recorded and attached to the specified event.
@phone::playAttachedVoiceMessage(EventScriptObject eventObj)
(EventScriptObject) eventObj: the event script object containing the voice message to play.
(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.
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