Other Script Tasks
Other commonly used commands are $run which may be used in a module of $type query to run an external program or batch command and return a result; $dial_cmd which may be used in a module of $type transfer to transfer a call to another line; and $play_var which may be used to play a message comprised of various phrases that were assembled based upon the contents of the specified variable. The $play_var command parses a variable according to rules contained in the algorithm portion of a variable phrase file. Variable phrase files are constructed using the FFAMOUNT program to compile the source. FFAMOUNT may also be used to test a variable phrase file and to recreate the algorithm source specifications that were used to create the variable phrase file.
When an external program is executed, its current folder is set to the Copia Application Data folder (typically \\server\copia\faxfacts). If you change the current folder in your application, the value is not retained after your program returns.
Voice recording, playback, and confirmation replay are accomplished using standard module types which handle all of the messy details of recording a message, allowing a caller to select a message for playback, and allowing a caller to replay a recorded message to confirm it. These operations are done using the $type record, $type playback, and $type replay modules respectively.
Comments may be included in scripts on a line starting with a semicolon (;), or by following the command and its parameters, if any, by at least one space and a semicolon preceding the comment text.