dtmfGetKey (Function) |
Top Previous Next |
This functions waits for a DTMF key press during an active GSM voice session. The function waits for a maximum number of milliseconds, and if no key is pressed within the timeout period, the function returns with -1 which indicates the timeout. If a key press has been detected before the timeout period, a number identifying the actual key press is returned.
Any voice messages being played (or in the queue) with voiceTalk will be canceled when a DTMF key is pressed during a call to dtmfGetKey. Also see voiceStop.
Input: timeout : INT (0..32767) Default 3000 Timeout period in milliseconds to wait for a DTMF tone.
Returns: INT (-1, 0..15)
Declaration: FUNCTION dtmfGetKey : INT;
Example: INCLUDE rtcu.inc |