Jump to content

- References

- # RecordLen()

  Followers 0

  Lua → VBScript SwxWare v13.10

  This functions returns the length in seconds of the last recorded message using the Record Message block of the GSE.

      local nLength = RecordLen()

  or if being used directly within a GSE property dialog, e.g. in a Say Number block to directly announce the length of the last recorded message to the caller:

  This function returns a number value.

  This function is identical to the Server Script API function PBXCall.LastRecordedMessageLength().

  When using the Record Message block of the GSE you can afterwards call this function at any time to receive the length of the recorded message (i.e. the WAV file) in seconds.

  If no message was recorded the function returns 0 (zero).

  The Send Email block deletes the last recording. So retrieve it beforehand. If you got a file size it remains valid until the script is finished. After that the file will be deleted by the server.

  By Tom Wellige

  - May 21, 2022
  Share
  Share
  Followers 0
  Previous Page PostDialingDigits()
  Next Page RIPIN()

## Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.