public class PlayCollectContext extends Object
| Constructor and Description |
|---|
PlayCollectContext(DtmfDetector detector,
DtmfDetectorListener detectorListener,
Map<String,String> parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCollectedDigits() |
void |
collectDigit(char digit) |
int |
countCollectedDigits() |
int |
getAttempt() |
boolean |
getClearDigitBuffer()
If set to true, clears the digit buffer before playing the initial prompt.
|
String |
getCollectedDigits() |
String |
getDigitPattern()
A legal digit map as described in section 7.1.14 of the
MEGACO protocol using the DTMF mappings associated with the Megaco DTMF Detection Package described in the Megaco
protocol document.
|
char |
getEndInputKey()
Specifies a key that signals the end of digit collection or voice recording.
|
int |
getExtraDigitTimer()
The amount of time to wait for a user to enter a final digit once the maximum expected amount of digits have been
entered.
|
Playlist |
getFailureAnnouncement() |
int |
getFirstDigitTimer()
The amount of time allowed for the user to enter the first digit.
|
boolean |
getIncludeEndInputKey()
By default the End Input Key is not included in the collected digits returned to the call agent.
|
Playlist |
getInitialPrompt() |
int |
getInterDigitTimer()
The amount of time allowed for the user to enter each subsequent digit.
|
long |
getLastCollectedDigitOn() |
char |
getLastTone() |
int |
getMaximumDigits()
The maximum number of digits to collect.
|
int |
getMinimumDigits()
The minimum number of digits to collect.
|
Playlist |
getNoDigitsReprompt() |
boolean |
getNonInterruptibleAudio()
If set to true, initial prompt is not interruptible by either voice or digits.
|
int |
getNumberOfAttempts()
The number of attempts the user needed to enter a valid digit pattern or to make a recording.
|
char |
getPositionKey()
Defines a key with the following action.
|
char |
getReinputKey()
Defines a key sequence consisting of a command key optionally followed by zero or more keys.
|
Playlist |
getReprompt() |
char |
getRestartKey()
Defines a key sequence consisting of a command key optionally followed by zero or more keys.
|
int |
getReturnCode() |
char |
getReturnKey()
Defines a key sequence consisting of a command key optionally followed by zero or more keys.
|
String |
getStartInputKeys()
Defines a set of keys that are acceptable as the first digit collected.
|
char |
getStopKey()
Defines a key with the following action.
|
Playlist |
getSuccessAnnouncement() |
boolean |
hasDigitPattern() |
boolean |
hasFailureAnnouncement() |
boolean |
hasMoreAttempts() |
boolean |
hasSuccessAnnouncement() |
protected void |
newAttempt()
Resets the collected digits and increments the attempts counter.
|
void |
setLastTone(char lastTone) |
protected void |
setReturnCode(int returnCode) |
public PlayCollectContext(DtmfDetector detector, DtmfDetectorListener detectorListener, Map<String,String> parameters)
public Playlist getInitialPrompt()
public Playlist getReprompt()
public Playlist getNoDigitsReprompt()
public Playlist getFailureAnnouncement()
public boolean hasFailureAnnouncement()
public Playlist getSuccessAnnouncement()
public boolean hasSuccessAnnouncement()
public boolean getNonInterruptibleAudio()
Defaults to false. Valid values are the text strings "true" and "false".
public boolean getClearDigitBuffer()
Defaults to false. Valid values are the text strings "true" and "false".
public int getMinimumDigits()
Defaults to one. This parameter should not be specified if the Digit Pattern parameter is present.
public int getMaximumDigits()
Defaults to one. This parameter should not be specified if the Digit Pattern parameter is present.
public String getDigitPattern()
This parameter should not be specified if one or both of the Minimum # Of Digits parameter and the Maximum Number Of Digits parameter is present.
public boolean hasDigitPattern()
public int getFirstDigitTimer()
Specified in units of 100 milliseconds. Defaults to 50 (5 seconds).
public int getInterDigitTimer()
Specified units of 100 milliseconds seconds. Defaults to 30 (3 seconds).
public int getExtraDigitTimer()
Typically this timer is used to wait for a terminating key in applications where a specific key has been defined to terminate input.
Specified in units of 100 milliseconds. If not specified, this timer is not activated.
public char getRestartKey()
No default. An application that defines more than one command key sequence, will typically use the same command key for all command key sequences.
If more than one command key sequence is defined, then all key sequences must consist of a command key plus at least one other key.
public char getReinputKey()
No default.
An application that defines more than one command key sequence, will typically use the same command key for all command key sequences.If more than one command key sequence is defined, then all key sequences must consist of a command key plus at least one other key.
public char getReturnKey()
No default. An application that defines more than one command key sequence, will typically use the same command key for all command key sequences.
If more than one command key sequence is defined, then all key sequences must consist of a command key plus at least one other key.
public char getPositionKey()
No default. The actions for the position key are fst, lst, prv, nxt, and cur.
public char getStopKey()
No default.
public String getStartInputKeys()
The default key set is 0-9. The default behavior is to interrupt a playing announcement when a Start Input Key is pressed.
This behavior can be overidden for the initial prompt only by using the ni (Non-Interruptible Play) parameter. Specification is a list of keys with no separators, e.g. 123456789#.
public char getEndInputKey()
The default end input key is the # key. To specify that no End Input Key be used the parameter is set to the string "null".
The default behavior not to return the End Input Key in the digits returned to the call agent. This behavior can be overridden by the Include End Input Key (eik) parameter.
public boolean getIncludeEndInputKey()
Default is "false".
public int getNumberOfAttempts()
Defaults to 1. Also used as a return parameter to indicate the number of attempts the user made.
public void collectDigit(char digit)
public void clearCollectedDigits()
public String getCollectedDigits()
public int countCollectedDigits()
public long getLastCollectedDigitOn()
public char getLastTone()
public void setLastTone(char lastTone)
public int getAttempt()
public boolean hasMoreAttempts()
public int getReturnCode()
protected void setReturnCode(int returnCode)
protected void newAttempt()
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.