0

I made a service to monitor all the incoming and outgoing calls of android device on my website but now I want to block the calls from specific number from the same webpage.

Is their is anyway to do call blocking on android device by php or javascript code?

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
  • Some service providers have call blocking features. Some don't. When they do have call blocking capability, they are in control over how it works. For example, with Verizon, you have to go to a block page where you can enter up to 5 numbers to be blocked. (However, I tried it. I blocked my office phone. I called myself. It wasn't blocked.) – kainaw Mar 19 '15 at 18:12
  • But android device can block the calls no matter which network or service provider you have. – android_coder Mar 19 '15 at 18:34

1 Answers1

0

In the telephony broadcast receive, check if the number is one of the blocked number? If condition is satisfied then use following code to end it:

telephonyService.endCall();
Ashutosh Nigam
  • 868
  • 8
  • 27
  • Thanks for your advice......but for this my app will check on server for the list of blocked numbers ......can i block the number instantly as i click a button from website? – android_coder Mar 23 '15 at 08:57
  • Then you will need code to synch the web database (the one being updated by button on your website) to your cellphone database. – Ashutosh Nigam Mar 23 '15 at 09:33