$type record [IIF]
Designate Infobox for Recording Caller Message
This command identifies the infobox as one that, when selected, invites the caller to leave a spoken message. The $image_desc command in the same infobox should specify a message that invites the caller to speak at the tone.
The parameter on this command is used as follows:
|dirname||the full name of the directory in which messages will be saved. The filename for the message will normally be n.MSG where n is the call number of the current call (left-zero-expanded). However if the $record_nextmsg command has been specified in the call, the number n will be obtained from that file instead.|
|nobeep||a keyword which suppresses the beep normally played to signal the start of the recording. This keyword can be specified with or without a preceding directory name.|
If you record different types of message in the same call, you should either change to a different directory for each one, or use $record_nextmsg so that each recorded message has a unique filename.
If no directory is specified on the command, the message will be placed in the directory specified either by $rcrd_dir in the user profile or by the latest $type record, $type replay, $type playback or $record_dir command that has been processed by this call, if any.
If the system variable RECORD_BUFFER has been set to a non-zero size value, no speech data is recorded to file and so no directory name is needed.
If the caller keys DTMF digits or hangs up during the recording and an $error_exit has been specified, control will pass to the infobox or state specified as the error exit. The RECORD_TERM system variable will contain the value DTMF or HANGUP to distinguish between these cases. If no error exit has been specified, or if the PROBLEM_CALL state has already been visited, the call will be terminated.
DTMF digits detected during a recording will always terminate the recording. If you are recording into a buffer, keyed DTMF digits will be retained and made available to the next $get_var operation or other request for input; otherwise, digits keyed during a recording are discarded.
; Filename 00001111.IIF Get address
$type record @FFBASE\vmail\address
$script "please speak your address at the beep"
$next_box 90001111 ;goto replay option
; Filename 90001111 Confirm address
$type replay ; use last named directory
$next_box 00002222 ; go to next question