Jump to content
Gold Sponsor: Data-Way IT-Consulting, Austria

  • PBXCall.LastRecordedMessage()

    PBXCall.LastRecordedMessage()

    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.

     

     


    Tom Wellige
     Share


     Share




×
×
  • Create New...

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.