|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.fastagi.command.AGICommand net.sf.asterisk.fastagi.command.WaitForDigitCommand
public class WaitForDigitCommand
Waits up to 'timeout' milliseconds for channel to receive a DTMF digit.
Returns -1 on channel failure, 0 if no digit is received in the timeout, or
the numerical value of the ascii of the digit if one is received. Use -1 for
the timeout value if you desire the call to block indefinitely.
Constructor Summary | |
---|---|
WaitForDigitCommand()
Creates a new WaitForDigitCommand with a default timeout of -1 which blocks the channel indefinitely. |
|
WaitForDigitCommand(long timeout)
Creates a new WaitForDigitCommand. |
Method Summary | |
---|---|
java.lang.String |
buildCommand()
Returns a string suitable to be sent to asterisk. |
long |
getTimeout()
Returns the milliseconds to wait for the channel to receive a DTMF digit. |
void |
setTimeout(long timeout)
Sets the milliseconds to wait for the channel to receive a DTMF digit. |
Methods inherited from class net.sf.asterisk.fastagi.command.AGICommand |
---|
escapeAndQuote, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WaitForDigitCommand()
public WaitForDigitCommand(long timeout)
timeout
- the milliseconds to wait for the channel to receive a DTMF
digit.Method Detail |
---|
public long getTimeout()
public void setTimeout(long timeout)
timeout
- the milliseconds to wait for the channel to receive a DTMF
digit.public java.lang.String buildCommand()
AGICommand
buildCommand
in class AGICommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |