Use GetKey to retrieve the information provided by a caller when the caller presses a single key on the telephone keypad to transmit the information.
GetKey retrieves the result when a caller presses a single key only.
GetKey receives the information and stores it in a temporary buffer. The contents of the buffer are then assigned to a variable for use by other states.
GetKey causes an automatic fade out of any background music. You can override this by using the System : Music : Automatic fade before actions system variable (SV226).
The parameters for GetKey identify the variable to which the information received from the caller is assigned. They also define how long the action waits for the information and how many times the application can repeat the action at this state.
The timeout counter retains its value until a new Get action (GetKey, GetData, GetFindData, GetFindName, GetPassword, or GetText) is encountered.
The timeout counter applies to the current line of the state table. When the Last Timeout result has been returned, the counter is reset. Also, note that the debugger treats each statement, or line, as a separate state table, so two consecutive Get actions appear as one action to Blueworx Voice Response. Last Timeout could therefore be returned when Timeout is expected. This is a limitation of the debugger.
The Last Timeout result is returned for any GET action if fax detection is turned on, and is detected. Check SV180 to see if fax was detected.
GetKey can have one of the following results:
The timeout counter applies to the current line of the state table. When the Last Timeout result has been returned, the counter is reset. Also, note that the debugger treats each statement, or line, as a separate state table, so two consecutive Get actions appear as one action to Blueworx Voice Response. Last Timeout could therefore be returned when Timeout is expected. This is a limitation of the debugger.
The Last Timeout result is returned for any GET action if fax detection is turned on, and is detected. Check SV180 to see if fax was detected.
When using an ASCII editor, code this action with these parameters in the following order:
For example:
label: "Check Edges" GetKey(loc1_n, 10, 5) edge EDGE_DTMF_0: dtmf_0 edge EDGE_DTMF_1: dtmf_1 edge EDGE_DTMF_2: dtmf_2 edge EDGE_DTMF_3: dtmf_3 edge EDGE_DTMF_4: dtmf_4 edge EDGE_DTMF_5: dtmf_5 edge EDGE_DTMF_6: dtmf_6 edge EDGE_DTMF_7: dtmf_7 edge EDGE_DTMF_8: dtmf_8 edge EDGE_DTMF_9: dtmf_9 edge EDGE_DTMF_A: dtmf_a edge EDGE_DTMF_B: dtmf_b edge EDGE_DTMF_C: dtmf_c edge EDGE_DTMF_D: dtmf_d edge EDGE_DTMF_ASTERISK: dtmf_asterisk edge EDGE_DTMF_HASH: dtmf_hash edge EDGE_TIMEOUT: timeout edge EDGE_LAST_TIMEOUT: last_timeout edge EDGE_HUP: hup ;
The parameters and edges are described above under "Parameters" and "Possible results". For more information, see Testing a state table using the debugger.