BlackBerry Device Applications Integration Guide
Task
Retrieve phone call information.
Add DTMF tones to the send queue
Task
Add a single DTMF tone to the send
queue.
Add multiple DTMF tones to the send
queue.
Retrieve the send queue for the current
call.
BlackBerry DTMF tones
BlackBerry® devices play DTMF tones as soon as no other tones are pending, overriding conversations.
DTMF tones consist of a low and a high frequency, which are played at the same time.
Key
1
2
3
4
5
6
7
8
9
0
*
#
52
Steps
PhoneCall
>
Use the methods of the
int threshold = 120; // Alert user if outgoing calls last longer than
threshold.
int elapsedTime = call.getElapsedTime();
// Use getStatusString() to retrieve status as an string.
int status = call.getStatus();
if ((status == PhoneCall.STATUS_CONNECTED || status ==
PhoneCall.STATUS_CONNECTING) && call.isOutGoing() && elapsedTime >
threshold) {
// Use getCallId() to retrieve the caller ID as as an integer.
String phoneNumber = call.getDisplayPhoneNumber();
Status.show("Your call to " + phoneNumber + " has lasted more than " +
(String)threshold + ".");
}
Steps
sendDTMFTone().
>
Invoke
sendDTMFTones()
>
Invoke
getDTMFTones().
>
Invoke
Low Tone (Hz)
697
697
697
770
770
770
852
852
852
941
941
941
class.
.
High Tone (Hz)
1209
1336
1477
1209
1336
1477
1209
1336
1477
1209
1336
1477