Devguy
Devguy

Reputation:

Programmatically reject a call on the BlackBerry

I'm trying to programmatically reject a call on a BlackBerry, with Java + JDE. I'm intercepting the callIncoming event, and in there I need to do something to reject a call from a specific number.

Does anyone know how to do that?

Upvotes: 7

Views: 3981

Answers (4)

Vivart
Vivart

Reputation: 15313

try this

How to disconnect a call in blackberry

Upvotes: 0

Jesse Dorsey
Jesse Dorsey

Reputation: 540

Using the incoming call listener, and notification APIs you can reject a call programmatically.

There is a topic discussing it on the blackberry developer forums, you can find it here

Upvotes: 0

kozen
kozen

Reputation: 509

There is no other way than the EventInjector. The "security" layout of the BlackBerry API does not allow to hang up / reject a call. We tried to find a solution for this issue for 2 years.

Upvotes: 0

Alexander
Alexander

Reputation: 9370

I couldn't find an API for directly rejecting the call in progress. However, you could explore a hack where you inject a keypress of the Hangup/Disconnect button (see EventInjector).

As to determining the phone number, you could use Phone.getCall(callId).getDisplayPhoneNumber() or Phone.getActiveCall().getDisplayPhoneNumber().

Upvotes: 3

Related Questions