Page 539 - Asterisk™: The Future of Telephony
P. 539

SPEECH_TEXT                                              Retrieves recognized text
               SPEECH_TEXT(result number)

               Gets the recognized text of a result.


               SPRINTF                                                        Formats a string
               SPRINTF(format|arg1[|...argN])

               Formats a variable or set of variables according to a format string.

               The most common case for the use of SPRINTF is to zero-pad a number to a certain
               length:
                   ; Returns 00123
                   exten => 123,1,Set(padfive=${SPRINTF(%05d,${EXTEN})})
               Most of the format options listed in the manpage for sprintf(3) are also implemented
               in this dialplan function.

               See Also
               STRFTIME()


               STAT                                                  Evaluates filesystem attributes
               STAT(flag,filename)

               Does a check on the specified file.
               flag may be one of the following options:

               e
                   Returns 1 if the file exists; 0 otherwise
               s
                   Returns the size of the file, in bytes
               f
                   Returns 1 if the path referenced is a regular file (and not a directory, symlink, socket,
                   or device) or 0 otherwise
               d
                   Returns 1 if the path referenced is a directory (and not a regular file, symlink, socket,
                   or device) or 0 otherwise

               M
                   Returns the epoch time when the file contents were last modified
               C
                   Returns the epoch time when the file inode was last modified


                                                                          SPEECH_TEXT | 511
   534   535   536   537   538   539   540   541   542   543   544