Question

I am am new to mobile app development. But i would like to know if this is possible to intercept incoming calls on my N73 using code like Java or C++?

My second question is if this is possible then can we prevent the phone from ringing with a specified phone number from a black listed contact???

I've seen a lot of apps doing this task but i am interested in knowing if this is feasible & how this is accomplished.

Thanks in Advance.

Was it helpful?

Solution

In C++ you can use CTelephony from etel3rdparty. Use NotifyChange() to subscribe to EVoiceLineStatusChange events. On an EStatusRinging event you can call GetCallInfo() to retrieve the remote party information, including phone number, and then decide whether to reject the call or let it keep ringing.

As far as I know, the CTelephony API does not have a direct method of rejecting a call but you can achieve almost the same with AnswerIncomingCall() followed by HangUp(). Your executable will need the NetworkServices capability.

A more hackish way to reject the call could be to use RWsSession to simulate pressing the red key (end key): call SimulateRawEvent() to send TRawEvent::EKeyDown and EKeyUp events on EStdKeyNo, with some delay between the events. In this case your executable will also need the SwEvent capability.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top