The PLAYGETDIGITS command performs the following operations:
To play nonindexed files, specify the file on the FILE operand. If you specify multiple file names, CA Automation Point plays each file in the order listed. CA Automation Point does not insert pauses between multiple files.
To play words from a voice word library, specify the name of the library on the FILE operand and the text of the word to play on the VAR operand.
This command has the following format:
Use the following format to play a message from a non-indexed voice file:
ADDRESS VOX "PLAYGETDIGITS CHANNEL(channelhandle) FILE(filename_1 [...filename_n]) FILETYPE(NONINDEX) [SYSTEM(sysname)] [INTERRUPT(YES|NO)] [COUNT(numtones)] [IDDELAY(maxdelay)] [TERMKEY(keytone)] [PREFIX(varname)] [CMDRESP(destination)] [SINGLESTRING(YES|NO)"
Use the following format to play a message from a voice word library file:
ADDRESS VOX "PLAYGETDIGITS CHANNEL(channelhandle) STRING(tonestring) FILE(filename) FILETYPE(WORDLIB) VAR(varname) [SYSTEM(sysname)] [INTERRUPT(YES|NO)] [COUNT(numtones)] [IDDELAY(maxdelay)] [TERMKEY(keytone)] [PREFIX(varname)] [CMDRESP(destination)] [SINGLESTRING(YES|NO)"
Specifies the channel handle (channelhandle)-identifying some physical channel-that the GETCHANNEL command returns.
Specifies the name of a voice file or voice word library.
Specifies the type of voice file to play. Valid values are:
NONINDEX - A nonindexed voice file
WORDLIB - A voice word library
Note: When specifying FILETYPE (WORDLIB), do not include a file extension on the FILE operand.
Default: NONINDEX
This operand is required only when specifying a voice word library on the FILETYPE operand.
For a voice word library, code either a REXX regular variable or stem variable. When coding regular variables with the VAR keyword, only that variable is searched.
With a stem variable, all numeric indexes for this stem will be searched. When coding a stem variable, varname. should follow this format:
Specifies the number of words in your message.
Each variable contains one word from the voice word library.
(Optional) Specifies the name of the system that is running the notification server to which you want to direct the command. The sysname value can contain up to eight alphanumeric characters.
Default: The local system name
(Optional) Specifies whether CA Automation Point interrupts a currently playing voice message if it receives a tone digit (that is, if the remote party presses a key on the telephone keypad). Valid values are:
Allows the interruption
Prevents the interruption
Default: YES
(Optional) Specifies the maximum number of tones to retrieve.
Default: 1
(Optional) Specifies the maximum time delay allowed between each digit's retrieval (in 1/10-second units).
Default: 30
(Optional) A termination tone digit that the remote party enters on the telephone keypad.
If CA Automation Point detects a tone that you specify, it terminates the PLAYGETDIGITS operation. You can specify one or more termination tones.
Valid values are: 0 1 2 3 4 5 6 7 8 9 * # a b c d
Note: The pound key (#) is a common tone-string terminator.
Default: #
(Optional) Specifies the name of the REXX stem variable (other than the default name) that contains the returned digit string.
For information about changing the default variable name, see ADDRESS VOX Return Information in this chapter.
Default: VOX.PLAYGETDIGITS
(Optional) Directs return information to a specific destination. For a list of valid destination values, see ADDRESS VOX Return Information in this chapter.
Default: REXX
(Optional) Specifies whether the PLAYGETDIGITS command's return string appears as a single string of digits in one variable (rather than as individual digits in separate variables).
Default: YES
Return Information:
After the PLAYGETDIGITS command executes, it sets the special REXX return code variable RC.
If you specify the optional SINGLESTRING(NO) operand, the PLAYGETDIGITS command returns this information in each of the VOX.PLAYGETDIGITS variables (VOX.PLAYGETDIGITS.1 through VOX.PLAYGETDIGITS.n):
|
Field |
Description of Returned Information |
|---|---|
|
1 |
A single digit entered by the remote party or sent by the telephone company. |
|
2 |
The tone type of the digit that was retrieved:
The value stored in the VOX.PLAYGETDIGITS.0 variable represents the number of tone digits that were retrieved. |
Example:
The following REXX code illustrates how to use the PLAYGETDIGITS command to play a voice message from a nonindexed (flat) voice file, and then collect the tone digits that the remote party enters from the telephone keypad in response:
/* Get exclusive access to a specific voice channel. */
address vox 'getchannel channelnum(1) prefix(handle)'
...
/* Play the Reset menu message and give the user five seconds */
/* to respond. */
address vox 'playgetdigits channel('handle') file(resetmnu.vox) iddelay(5) prefix(response)'
...
/* Release the voice channel. */
address vox 'releasechannel channel('handle')'
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|