Lua → VBScript SwxWare v13.10
This function returns the name (incl. path) of the last recorded message (by the Record Message block).
local sFileName = PBXCall.LastRecordedMessage()
This function returns a string value.
When making use of the Record Message functionality the SwyxServer defines the unique name of the WAV file to take the recording. After a recording this name can be requested from the server i.e. by this property. The Record Message block also provides a variable the name will be written in.
If you need to know how many seconds were recorded in that WAV file you can use the PBXCall.LastRecordedMessageLength() function.
The file is named Rec_yyyyMMddhhmmss.wav where yyyMMddhhmmss is the time and date of the recording.
The file name remains valid until the script is finished. After that the file will be deleted by the server.
Hint: the PBXCall.SendEmail() function deletes the last recording as well. So handle the file if needed beforehand.