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

<p>Does anyone know how to do that?</p>

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()
```
.